jdk-24/langtools/test/tools/javac/QualifiedNew.java
Maurizio Cimadamore 7186448cfe 7019631: issues in test headers in b130
Fix to test headers not containing correct bug ID

Reviewed-by: jjg
2011-02-23 14:17:08 +00:00

18 lines
369 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4406966 6969184
* @summary null qualifying inner instance creation should be error.
* @author gafter
*
* @compile/fail/ref=QualifiedNew.out -XDrawDiagnostics QualifiedNew.java
*/
class QualifiedNew {
class Y {}
class Z {
Y[] a;
Object tmp1 = null.new Y();
Object tmp2 = a.new Y();
}
}