Eval4J: Do not report certain kinds of exceptions to EA
This commit is contained in:
+3
-3
@@ -21,12 +21,12 @@ fun fail() {
|
||||
fun classCast() {
|
||||
val o = Base()
|
||||
// EXPRESSION: o as Derived
|
||||
// RESULT: java.lang.ClassCastException: exceptions.Base cannot be cast to exceptions.Derived: Ljava/lang/ClassCastException;
|
||||
// RESULT: java.lang.ClassCastException : exceptions.Base cannot be cast to exceptions.Derived
|
||||
//Breakpoint!
|
||||
val a = 1
|
||||
|
||||
// EXPRESSION: o as Derived
|
||||
// RESULT: java.lang.ClassCastException: exceptions.Base cannot be cast to exceptions.Derived: Ljava/lang/ClassCastException;
|
||||
// RESULT: java.lang.ClassCastException : exceptions.Base cannot be cast to exceptions.Derived
|
||||
//Breakpoint!
|
||||
val b = 1
|
||||
}
|
||||
@@ -46,7 +46,7 @@ fun genericClassCast() {
|
||||
val c = ArrayList<String>()
|
||||
c.add("a")
|
||||
// EXPRESSION: c.get(0)
|
||||
// RESULT: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number: Ljava/lang/ClassCastException;
|
||||
// RESULT: java.lang.ClassCastException : java.lang.String cannot be cast to java.lang.Number
|
||||
//Breakpoint!
|
||||
val b = 1
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ fun main(args: Array<String>) {
|
||||
// RESULT: 1: I
|
||||
|
||||
// EXPRESSION: derived.prop
|
||||
// RESULT: java.lang.ClassCastException: smartcasts.Base cannot be cast to smartcasts.Derived: Ljava/lang/ClassCastException;
|
||||
// RESULT: java.lang.ClassCastException : smartcasts.Base cannot be cast to smartcasts.Derived
|
||||
fun test1(derived: Base) =
|
||||
derived is Derived &&
|
||||
//Breakpoint!
|
||||
|
||||
@@ -12,4 +12,4 @@ fun main(args: Array<String>) {
|
||||
// RESULT: 1: I
|
||||
|
||||
// EXPRESSION: s2.length
|
||||
// RESULT: java.lang.NullPointerException: Ljava/lang/NullPointerException;
|
||||
// RESULT: java.lang.NullPointerException
|
||||
Reference in New Issue
Block a user