Mon, 17 Oct 2016 21:20:17 -0700
8168115: Remove and retag jdk8u122-b03 in 8u repo
Reviewed-by: coffeys
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 8029569 8037379
4 * @summary internal javac cast exception when resolving varargs ambiguity
5 * fix for JDK-8029569 doesn't cover all possible cases
6 * @compile/fail/ref=VarargsAmbiguityCrashTest.out -XDrawDiagnostics VarargsAmbiguityCrashTest.java
7 */
9 public class VarargsAmbiguityCrashTest {
10 void m1() {
11 m2(null, new Exception());
12 }
14 void m2(Long l) {}
16 void m2(Exception... exception) {}
18 void m2(Long l, Exception... exception) {}
19 }