diff --git a/plugins/stream-debugger/src/main/java/com/intellij/debugger/streams/trace/dsl/impl/java/JavaArrayVariable.kt b/plugins/stream-debugger/src/main/java/com/intellij/debugger/streams/trace/dsl/impl/java/JavaArrayVariable.kt index bb910749af4b..9b8132d5e5a6 100644 --- a/plugins/stream-debugger/src/main/java/com/intellij/debugger/streams/trace/dsl/impl/java/JavaArrayVariable.kt +++ b/plugins/stream-debugger/src/main/java/com/intellij/debugger/streams/trace/dsl/impl/java/JavaArrayVariable.kt @@ -25,7 +25,8 @@ import com.intellij.debugger.streams.trace.impl.handler.type.GenericType /** * @author Vitaliy.Bibaev */ -class JavaArrayVariable(override val elementType: GenericType, name: String) : VariableImpl("$elementType[]", name), ArrayVariable { +class JavaArrayVariable(override val elementType: GenericType, name: String) + : VariableImpl("${elementType.variableTypeName}[]", name), ArrayVariable { override fun get(index: Expression): Expression = TextExpression("$name[${index.toCode()}]") override fun set(index: Expression, value: Expression): Expression = TextExpression("$name[${index.toCode()}] = ${value.toCode()}") diff --git a/plugins/stream-debugger/testData/dsl/kotlin/arrayDefaultDeclaration.out b/plugins/stream-debugger/testData/dsl/kotlin/arrayDefaultDeclaration.out index e69de29bb2d1..87155c3b85bb 100644 --- a/plugins/stream-debugger/testData/dsl/kotlin/arrayDefaultDeclaration.out +++ b/plugins/stream-debugger/testData/dsl/kotlin/arrayDefaultDeclaration.out @@ -0,0 +1 @@ +var array: kotlin.Array = kotlin.arrayOfNulls(10)