Sat, 07 Nov 2020 10:30:02 +0800
Added tag mips-jdk8u275-b01 for changeset eb6ee6a5f2fe
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 | } |