summaryrefslogtreecommitdiff
path: root/test/008-exceptions/src/Main.java
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-11-06 18:42:04 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-11-06 18:42:04 +0000
commitef7ef4ce04a46405e15cd91115c6e657235adf83 (patch)
tree870583f3283d78b22ebe57d8d79ce9c3b2c8030f /test/008-exceptions/src/Main.java
parentf66f05ddfceaa8a2f613d3ed8316a21c95e1fbca (diff)
parentcb086955c2a21270cd2f53a8bce71e577d776506 (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.java6
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();