test/tools/javac/T8029569/VarargsAmbiguityCrashTest.java

Wed, 08 Oct 2014 14:16:40 -0700

author
asaha
date
Wed, 08 Oct 2014 14:16:40 -0700
changeset 2586
f5e5ca7505e2
parent 2392
73cbce40a149
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Merge

     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 }

mercurial