Mon, 01 Jun 2015 15:19:54 -0700
8075546: Add tiered testing definitions to the langtools repo
Reviewed-by: jjg
dlsmith@2788 | 1 | /* |
dlsmith@2788 | 2 | * @test /nodynamiccopyright/ |
dlsmith@2788 | 3 | * @bug 8077786 |
dlsmith@2788 | 4 | * @summary Check varargs access against inferred signature |
dlsmith@2788 | 5 | * @compile/fail/ref=VarargsInferredPrivateType.out -nowarn -XDrawDiagnostics VarargsInferredPrivateType.java OtherPackage.java |
dlsmith@2788 | 6 | * @compile/fail/ref=VarargsInferredPrivateType.out -source 8 -nowarn -XDrawDiagnostics VarargsInferredPrivateType.java OtherPackage.java |
dlsmith@2788 | 7 | * @compile/fail/ref=VarargsInferredPrivateType-source7.out -source 7 -nowarn -XDrawDiagnostics VarargsInferredPrivateType.java OtherPackage.java |
dlsmith@2788 | 8 | */ |
dlsmith@2788 | 9 | |
dlsmith@2788 | 10 | class VarargsInferredPrivateType { |
dlsmith@2788 | 11 | interface I { |
dlsmith@2788 | 12 | <T> void m(T... t); |
dlsmith@2788 | 13 | } |
dlsmith@2788 | 14 | |
dlsmith@2788 | 15 | void m(I i) { |
dlsmith@2788 | 16 | i.m(otherpackage.OtherPackage.getPrivate()); |
dlsmith@2788 | 17 | } |
dlsmith@2788 | 18 | } |