Support checkcast instruction for array

This commit is contained in:
Natalia Ukhorskaya
2014-04-04 15:08:03 +04:00
parent ca877f1413
commit 56e0746814
2 changed files with 5 additions and 1 deletions
@@ -38,7 +38,7 @@ class JDIEval(
}
override fun isInstanceOf(value: Value, targetType: Type): Boolean {
assert(targetType.getSort() == Type.OBJECT, "Can't check isInstanceOf() for non-object type $targetType")
assert(targetType.getSort() == Type.OBJECT || targetType.getSort() == Type.ARRAY, "Can't check isInstanceOf() for non-object type $targetType")
val _class = loadClass(targetType)
return invokeMethod(
@@ -459,4 +459,8 @@ class TestData {
}
return s;
}
static void castToArray() {
int[] i = (int[]) null;
}
}