From e2b0212c34281cd99504fac802f6b31ba58c6106 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Mon, 14 Oct 2013 07:50:14 +0400 Subject: [PATCH] NewObjectValue is a legitimate value too --- src/org/jetbrains/eval4j/jdi/jdiValues.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/eval4j/jdi/jdiValues.kt b/src/org/jetbrains/eval4j/jdi/jdiValues.kt index 73d7fe55a38..519a645d85c 100644 --- a/src/org/jetbrains/eval4j/jdi/jdiValues.kt +++ b/src/org/jetbrains/eval4j/jdi/jdiValues.kt @@ -73,7 +73,7 @@ fun Value.asJdiValue(vm: jdi.VirtualMachine): jdi.Value? { is FloatValue -> vm.mirrorOf(value) is DoubleValue -> vm.mirrorOf(value) is ObjectValue -> value as jdi.ObjectReference - is NewObjectValue -> throw JDIFailureException("Illegal value: $this") + is NewObjectValue -> this.obj as jdi.ObjectReference else -> throw JDIFailureException("Unknown value: $this") } } \ No newline at end of file