diff options
author | aclement <aclement> | 2008-06-13 23:22:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-13 23:22:43 +0000 |
commit | b35eb40ec74a32030312ee9cbbe2b40f6315dc12 (patch) | |
tree | 8a709c9abf74f2c8a403d4eebfbfaf9f78876fe4 /tests/bugs161/pr102733/Invoker.java | |
parent | 8e966e2713ca264371174574ba099eeedeb38190 (diff) | |
download | aspectj-b35eb40ec74a32030312ee9cbbe2b40f6315dc12.tar.gz aspectj-b35eb40ec74a32030312ee9cbbe2b40f6315dc12.zip |
102733: broken code support, wooo
Diffstat (limited to 'tests/bugs161/pr102733/Invoker.java')
-rw-r--r-- | tests/bugs161/pr102733/Invoker.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/bugs161/pr102733/Invoker.java b/tests/bugs161/pr102733/Invoker.java new file mode 100644 index 000000000..bfa162de5 --- /dev/null +++ b/tests/bugs161/pr102733/Invoker.java @@ -0,0 +1,14 @@ +import java.lang.reflect.Method; + +public class Invoker { + public static void main(String[] args) throws Throwable { + try { + C.main(null); + } catch (Throwable t) { + boolean failedCorrectly = t.toString().indexOf("Unresolved compilation")!=-1; + if (failedCorrectly) return; + throw t; + } + throw new RuntimeException("Call to main should have failed!"); + } +}
\ No newline at end of file |