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