NewObjectValue is a legitimate value too

This commit is contained in:
Andrey Breslav
2013-10-14 07:50:14 +04:00
parent e13c331e78
commit e2b0212c34
+1 -1
View File
@@ -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")
}
}