summaryrefslogtreecommitdiffstats
path: root/tests/bugs/binaryCompat/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/binaryCompat/Main.java')
-rw-r--r--tests/bugs/binaryCompat/Main.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs/binaryCompat/Main.java b/tests/bugs/binaryCompat/Main.java
new file mode 100644
index 000000000..d91978f9f
--- /dev/null
+++ b/tests/bugs/binaryCompat/Main.java
@@ -0,0 +1,17 @@
+public class Main {
+ public static void main(String[] args) {
+ try {
+ doit();
+ if (Trace.expectNoSuchMethodError) {
+ throw new RuntimeException("expected NoSuchMethodError");
+ }
+ } catch (NoSuchMethodError e) {
+ if (!Trace.expectNoSuchMethodError) throw e;
+ }
+
+ }
+
+ private static void doit() {
+ System.out.println("hello world");
+ }
+} \ No newline at end of file