summaryrefslogtreecommitdiffstats
path: root/test/111-unresolvable-exception
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-05-29 16:55:06 -0700
committerIan Rogers <irogers@google.com>2014-05-29 16:55:06 -0700
commit822266b9dc7d8dc9e084192ae0f4bc95af4e8cf8 (patch)
tree6f9b2470d9f1bfa74bf53da3b3794ec8e6bf8d6f /test/111-unresolvable-exception
parent31e7fcb904f03a504f082d25814ac4644b5073e4 (diff)
downloadart-822266b9dc7d8dc9e084192ae0f4bc95af4e8cf8.zip
art-822266b9dc7d8dc9e084192ae0f4bc95af4e8cf8.tar.gz
art-822266b9dc7d8dc9e084192ae0f4bc95af4e8cf8.tar.bz2
Ignore catch blocks whose type can't be resolved.
Reverts change 72b3e430d880ef57eaa6a34a0822165994052202 but keeps unit test and missing delete that would fail assertions on long jump context recycling. Change-Id: I926755e8b831b208aa7e1ce46421bef3793a1441
Diffstat (limited to 'test/111-unresolvable-exception')
-rw-r--r--test/111-unresolvable-exception/expected.txt2
-rw-r--r--test/111-unresolvable-exception/src/Main.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/111-unresolvable-exception/expected.txt b/test/111-unresolvable-exception/expected.txt
index 052dd74..f8a1e96 100644
--- a/test/111-unresolvable-exception/expected.txt
+++ b/test/111-unresolvable-exception/expected.txt
@@ -1 +1 @@
-Caught class java.lang.NoClassDefFoundError
+Got expected exception.
diff --git a/test/111-unresolvable-exception/src/Main.java b/test/111-unresolvable-exception/src/Main.java
index ba07ee1..adeb0a2 100644
--- a/test/111-unresolvable-exception/src/Main.java
+++ b/test/111-unresolvable-exception/src/Main.java
@@ -32,7 +32,7 @@ public class Main {
throw new RuntimeException(); // Trigger exception handling.
} catch (TestException e) { // This handler will have an unresolvable class.
} catch (Exception e) { // General-purpose handler
- System.out.println("Should not get here!");
+ System.out.println("Got expected exception.");
}
}