Fri, 24 Apr 2020 03:58:51 +0100
Merge
jfranck@2615 | 1 | /* |
jfranck@2615 | 2 | * @test /nodynamiccopyright/ |
jfranck@2615 | 3 | * @bug 8062359 |
jfranck@2615 | 4 | * @summary NullPointerException in Attr when type-annotating an anonymous |
jfranck@2615 | 5 | * inner class in an unresolvable class |
jfranck@2615 | 6 | * @compile/fail/ref=UnresolvableClassNPEInAttrTest.out -XDrawDiagnostics UnresolvableClassNPEInAttrTest.java |
jfranck@2615 | 7 | */ |
jfranck@2615 | 8 | |
jfranck@2615 | 9 | public class UnresolvableClassNPEInAttrTest { |
jfranck@2615 | 10 | public static void main(String[] args) { |
jfranck@2615 | 11 | new Undefined() { |
jfranck@2615 | 12 | void test() { |
jfranck@2615 | 13 | new Object() {}; |
jfranck@2615 | 14 | } |
jfranck@2615 | 15 | }; |
jfranck@2615 | 16 | } |
jfranck@2615 | 17 | } |