aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr102733/Invoker.java
blob: bfa162de5c7667b0eaca3dd8b113b0ef2781ab25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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!");
	}
}