diff options
| author | 2020-07-24 12:10:12 +0100 | |
|---|---|---|
| committer | 2020-07-26 21:08:18 +0000 | |
| commit | 2731eb474f3f1b9c7598bd477ebbbb1aae28d833 (patch) | |
| tree | 848224dec52ebec3dcdfbfeda9c756e5fb552603 /test/008-exceptions/src/Main.java | |
| parent | 14464670d7d6a226b768873f25d63f5d025941ff (diff) | |
More inclusive language fixes
Bug: 161896447
Bug: 161850439
Bug: 161336379
Test: art/test.py --host
Change-Id: I1519e22d40cb28f243dd75b12d455cfa844726fc
Diffstat (limited to 'test/008-exceptions/src/Main.java')
| -rw-r--r-- | test/008-exceptions/src/Main.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/008-exceptions/src/Main.java b/test/008-exceptions/src/Main.java index 008576acc3..0ba5f801b5 100644 --- a/test/008-exceptions/src/Main.java +++ b/test/008-exceptions/src/Main.java @@ -23,7 +23,7 @@ class BadError extends Error { // A class that throws BadError during static initialization. class BadInit { - static int dummy; + static int intField; static { System.out.println("Static Init"); if (true) { @@ -41,7 +41,7 @@ class BadErrorNoStringInit extends Error { // A class that throws BadErrorNoStringInit during static initialization. class BadInitNoStringInit { - static int dummy; + static int intField; static { System.out.println("Static BadInitNoStringInit"); if (true) { @@ -52,7 +52,7 @@ class BadInitNoStringInit { // A class that throws BadError during static initialization, serving as a super class. class BadSuperClass { - static int dummy; + static int intField; static { System.out.println("BadSuperClass Static Init"); if (true) { @@ -104,7 +104,7 @@ public class Main { private static void exceptionsRethrowClassInitFailure() { try { try { - BadInit.dummy = 1; + BadInit.intField = 1; throw new IllegalStateException("Should not reach here."); } catch (BadError e) { System.out.println(e); @@ -113,7 +113,7 @@ public class Main { // Check if it works a second time. try { - BadInit.dummy = 1; + BadInit.intField = 1; throw new IllegalStateException("Should not reach here."); } catch (NoClassDefFoundError e) { System.out.println(e); @@ -127,7 +127,7 @@ public class Main { private static void exceptionsRethrowClassInitFailureNoStringInit() { try { try { - BadInitNoStringInit.dummy = 1; + BadInitNoStringInit.intField = 1; throw new IllegalStateException("Should not reach here."); } catch (BadErrorNoStringInit e) { System.out.println(e); @@ -136,7 +136,7 @@ public class Main { // Check if it works a second time. try { - BadInitNoStringInit.dummy = 1; + BadInitNoStringInit.intField = 1; throw new IllegalStateException("Should not reach here."); } catch (NoClassDefFoundError e) { System.out.println(e); @@ -150,7 +150,7 @@ public class Main { private static void exceptionsForSuperClassInitFailure() { try { // Resolve DerivedFromBadSuperClass. - BadSuperClass.dummy = 1; + BadSuperClass.intField = 1; throw new IllegalStateException("Should not reach here."); } catch (BadError e) { System.out.println(e); @@ -181,7 +181,7 @@ public class Main { private static void exceptionsInMultiDex() { try { - MultiDexBadInit.dummy = 1; + MultiDexBadInit.intField = 1; throw new IllegalStateException("Should not reach here."); } catch (Error e) { System.out.println(e); @@ -194,7 +194,7 @@ public class Main { // wrapped in NoClassDefFoundError but the exception // from wrapper 2 would have been unwrapped. try { - MultiDexBadInitWrapper1.setDummy(1); + MultiDexBadInitWrapper1.setIntField(1); throw new IllegalStateException("Should not reach here."); } catch (NoClassDefFoundError ncdfe) { System.out.println(ncdfe); @@ -203,7 +203,7 @@ public class Main { t.printStackTrace(System.out); } try { - MultiDexBadInitWrapper2.setDummy(1); + MultiDexBadInitWrapper2.setIntField(1); throw new IllegalStateException("Should not reach here."); } catch (NoClassDefFoundError ncdfe) { System.out.println(ncdfe); |