8205141: runtime/exceptionMsgs/ArrayStoreException/ArrayStoreExceptionTest.java failed with "assert(k->is_objArray_klass()) failed: cast to ObjArrayKlass

Reviewed-by: dholmes, goetz
This commit is contained in:
Thomas Stuefe 2018-06-20 06:51:39 +02:00
parent 14e06400d3
commit b7fe5e4f7b
2 changed files with 0 additions and 19 deletions

View File

@ -63,18 +63,6 @@ public class ArrayStoreExceptionTest {
}
}
static native void doNativeArrayStore2(Object src, Object dst, int index);
static void testNativeASMessages2(Object array, Object elem, int index, String message)
throws Exception {
try {
doNativeArrayStore2(array, elem, index);
Asserts.fail("Expected ArrayStoreException not thrown");
} catch (ArrayIndexOutOfBoundsException e) {
Asserts.assertEquals(e.getMessage(), message);
}
}
public static void main(String[] args) throws Exception {
try {
boolean[] za1 = new boolean[3];
@ -193,8 +181,6 @@ public class ArrayStoreExceptionTest {
testNativeASMessages(ia4, "This is not a date", 2,
"type mismatch: can not store java.lang.String to int[2][][]");
testNativeASMessages2("This is not an array", "This is not a date", 2, "2");
} catch (java.lang.RuntimeException e) {
throw e;
} catch (Exception e) {

View File

@ -30,8 +30,3 @@ JNIEXPORT void JNICALL
(*env)->SetObjectArrayElement(env, array, index, element);
}
JNIEXPORT void JNICALL
Java_ArrayStoreExceptionTest_doNativeArrayStore2(JNIEnv *env, jclass klass,
jobject array, jobject element, jint index) {
(*env)->SetObjectArrayElement(env, (jobjectArray)array, index, element);
}