You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
4 months ago
|
JNI_OnLoad called
|
||
|
getFieldId(class TestClass, "intField", "")
|
||
|
Caught java.lang.NoSuchFieldError
|
||
|
getFieldId(class TestClass, "intField", "I")
|
||
|
Result: true
|
||
|
getFieldId(class TestClass, "intField", "int")
|
||
|
Caught java.lang.NoSuchFieldError
|
||
|
caused by java.lang.NoClassDefFoundError
|
||
|
getFieldId(class TestClass, "intField", "Lint;")
|
||
|
Caught java.lang.NoSuchFieldError
|
||
|
caused by java.lang.ClassNotFoundException
|
||
|
getFieldId(class TestClass, "stringField", "I")
|
||
|
Caught java.lang.NoSuchFieldError
|
||
|
getFieldId(class TestClass, "stringField", "Ljava/lang/String;")
|
||
|
Result: true
|
||
|
getFieldId(class TestClass, "stringField", "java/lang/String")
|
||
|
Caught java.lang.NoSuchFieldError
|
||
|
caused by java.lang.NoClassDefFoundError
|
||
|
getFieldId(class TestClass, "stringField", "Ljava.lang.String;")
|
||
|
Caught java.lang.NoSuchFieldError
|
||
|
caused by java.lang.NoClassDefFoundError
|
||
|
getFieldId(class TestClass, "stringField", "java.lang.String")
|
||
|
Caught java.lang.NoSuchFieldError
|
||
|
caused by java.lang.NoClassDefFoundError
|
||
|
Test that MyClassLoader.loadClass("Bad.Class") shall not be called.
|
||
|
Error message for Bad/Class: Invalid descriptor: Bad/Class.
|
||
|
Error message for Bad.Class: Invalid descriptor: Bad.Class.
|
||
|
Error message for LBad.Class;: Invalid descriptor: LBad.Class;.
|