diff options
author | 2022-07-07 18:01:39 +0000 | |
---|---|---|
committer | 2022-07-07 18:01:39 +0000 | |
commit | 385e5df0ca2a739a4bdbe2ab364ce71adfa00bff (patch) | |
tree | 69d6acba23cf45cccc6e959d30719858a7df1de7 /test/182-method-linking/src/Main.java | |
parent | 50789e0685ceeb50e5adfe1d69ba1bd3f7a39c85 (diff) | |
parent | ffbdfeec4c9e851872513cfcc6508f7a39d19ad5 (diff) |
Fix one edge case at method linking to throw at runtime. am: d88c1499ef am: 8bc8a6b5b6 am: 3c3a870149 am: ffbdfeec4c
Original change: https://android-review.googlesource.com/c/platform/art/+/2146626
Change-Id: Ic51a13650e185755797854c4b75dbbbcde7058d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'test/182-method-linking/src/Main.java')
-rw-r--r-- | test/182-method-linking/src/Main.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/182-method-linking/src/Main.java b/test/182-method-linking/src/Main.java index 39029560f7..638ff654a3 100644 --- a/test/182-method-linking/src/Main.java +++ b/test/182-method-linking/src/Main.java @@ -33,12 +33,6 @@ import pkg2.I2; public class Main { public static void main(String args[]) { - try { - Class.forName("dalvik.system.PathClassLoader"); - } catch (ClassNotFoundException e) { - usingRI = true; - } - // A single method signature can result in multiple vtable entries // when package-private methods from different packages are involved. // All classes here define the method `void foo()` but classes @@ -120,7 +114,6 @@ public class Main { CXI1 cxi1 = new CXI1(); I1.callI1Foo(cxi1); } catch (IllegalAccessError expected) { - printOnDalvik("Calling pkg1.I1.foo on pkg1.CXI1"); System.out.println("Caught IllegalAccessError"); } @@ -128,7 +121,6 @@ public class Main { CXI2 cxi2 = new CXI2(); I2.callI2Foo(cxi2); } catch (IllegalAccessError expected) { - printOnDalvik("Calling pkg2.I2.foo on pkg1.CXI2"); System.out.println("Caught IllegalAccessError"); } @@ -136,7 +128,6 @@ public class Main { DXI1 dxi1 = new DXI1(); I1.callI1Foo(dxi1); } catch (IllegalAccessError expected) { - printOnDalvik("Calling pkg1.I1.foo on pkg2.DXI1"); System.out.println("Caught IllegalAccessError"); } @@ -144,17 +135,7 @@ public class Main { DXI2 dxi2 = new DXI2(); I2.callI2Foo(dxi2); } catch (IllegalAccessError expected) { - printOnDalvik("Calling pkg2.I2.foo on pkg2.DXI2"); System.out.println("Caught IllegalAccessError"); } } - - private static void printOnDalvik(String line) { - if (!usingRI) { - // FIXME: Delay IAE until calling the method. Bug: 211854716 - System.out.println(line); - } - } - - private static boolean usingRI = false; } |