Fri, 24 Apr 2020 03:58:51 +0100
Merge
vromero@2219 | 1 | /* |
vromero@2392 | 2 | * @test /nodynamiccopyright/ |
vromero@2392 | 3 | * @bug 8029569 8037379 |
vromero@2219 | 4 | * @summary internal javac cast exception when resolving varargs ambiguity |
vromero@2392 | 5 | * fix for JDK-8029569 doesn't cover all possible cases |
vromero@2219 | 6 | * @compile/fail/ref=VarargsAmbiguityCrashTest.out -XDrawDiagnostics VarargsAmbiguityCrashTest.java |
vromero@2219 | 7 | */ |
vromero@2219 | 8 | |
vromero@2219 | 9 | public class VarargsAmbiguityCrashTest { |
vromero@2219 | 10 | void m1() { |
vromero@2219 | 11 | m2(null, new Exception()); |
vromero@2219 | 12 | } |
vromero@2219 | 13 | |
vromero@2219 | 14 | void m2(Long l) {} |
vromero@2219 | 15 | |
vromero@2219 | 16 | void m2(Exception... exception) {} |
vromero@2219 | 17 | |
vromero@2219 | 18 | void m2(Long l, Exception... exception) {} |
vromero@2219 | 19 | } |