Evaluate expression: render InvocationExceptions correctly

This commit is contained in:
Natalia Ukhorskaya
2014-12-24 10:47:24 +03:00
parent b6095eca58
commit 94466da61b
2 changed files with 13 additions and 5 deletions
@@ -4,12 +4,12 @@ import java.util.ArrayList
fun throwException() {
// EXPRESSION: fail()
// RESULT: instance of java.lang.UnsupportedOperationException(id=ID): Ljava/lang/UnsupportedOperationException;
// RESULT: Exception occurred in target VM: Method threw 'java.lang.UnsupportedOperationException' exception.
//Breakpoint!
val a = 1
// EXPRESSION: fail()
// RESULT: instance of java.lang.UnsupportedOperationException(id=ID): Ljava/lang/UnsupportedOperationException;
// RESULT: Exception occurred in target VM: Method threw 'java.lang.UnsupportedOperationException' exception.
//Breakpoint!
val b = 1
}