diff options
| author | 2015-11-06 18:42:04 +0000 | |
|---|---|---|
| committer | 2015-11-06 18:42:04 +0000 | |
| commit | ef7ef4ce04a46405e15cd91115c6e657235adf83 (patch) | |
| tree | 870583f3283d78b22ebe57d8d79ce9c3b2c8030f /test/008-exceptions/src/Main.java | |
| parent | f66f05ddfceaa8a2f613d3ed8316a21c95e1fbca (diff) | |
| parent | cb086955c2a21270cd2f53a8bce71e577d776506 (diff) | |
Merge "ART: Change behavior for rethrowing init failures (2)"
Diffstat (limited to 'test/008-exceptions/src/Main.java')
| -rw-r--r-- | test/008-exceptions/src/Main.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/008-exceptions/src/Main.java b/test/008-exceptions/src/Main.java index c0502047d0..9e3477a47b 100644 --- a/test/008-exceptions/src/Main.java +++ b/test/008-exceptions/src/Main.java @@ -98,8 +98,9 @@ public class Main { try { BadInit.dummy = 1; throw new IllegalStateException("Should not reach here."); - } catch (BadError e) { + } catch (NoClassDefFoundError e) { System.out.println(e); + System.out.println(e.getCause()); } } catch (Exception error) { error.printStackTrace(); @@ -120,8 +121,9 @@ public class Main { try { BadInitNoStringInit.dummy = 1; throw new IllegalStateException("Should not reach here."); - } catch (BadErrorNoStringInit e) { + } catch (NoClassDefFoundError e) { System.out.println(e); + System.out.println(e.getCause()); } } catch (Exception error) { error.printStackTrace(); |