summaryrefslogtreecommitdiffstats
path: root/tests/bugs/binaryCompat/Main.java
blob: 0903463d9a5a95e04529f8e5afa5106851e175a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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");
	}
}