Vladimir Marko | 5fdd778 | 2017-04-20 11:26:03 +0100 | [diff] [blame] | 1 | JNI_OnLoad called |
| 2 | getFieldId(class TestClass, "intField", "I") |
| 3 | Result: true |
| 4 | getFieldId(class TestClass, "intField", "int") |
| 5 | Caught java.lang.NoSuchFieldError |
| 6 | caused by java.lang.NoClassDefFoundError |
| 7 | getFieldId(class TestClass, "intField", "Lint;") |
| 8 | Caught java.lang.NoSuchFieldError |
| 9 | caused by java.lang.ClassNotFoundException |
| 10 | getFieldId(class TestClass, "stringField", "I") |
| 11 | Caught java.lang.NoSuchFieldError |
| 12 | getFieldId(class TestClass, "stringField", "Ljava/lang/String;") |
| 13 | Result: true |
| 14 | getFieldId(class TestClass, "stringField", "java/lang/String") |
| 15 | Caught java.lang.NoSuchFieldError |
| 16 | caused by java.lang.NoClassDefFoundError |
| 17 | getFieldId(class TestClass, "stringField", "Ljava.lang.String;") |
| 18 | Caught java.lang.NoSuchFieldError |
| 19 | caused by java.lang.NoClassDefFoundError |
| 20 | getFieldId(class TestClass, "stringField", "java.lang.String") |
| 21 | Caught java.lang.NoSuchFieldError |
| 22 | caused by java.lang.NoClassDefFoundError |
| 23 | Test that MyClassLoader.loadClass("Bad.Class") shall not be called. |
| 24 | Error message for Bad/Class: Invalid descriptor: Bad/Class. |
| 25 | Error message for Bad.Class: Invalid descriptor: Bad.Class. |
| 26 | Error message for LBad.Class;: Invalid descriptor: LBad.Class;. |