2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2011-02-03 09:38:19 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2011-02-23 14:17:08 +00:00
|
|
|
* @bug 4406966 6969184
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary null qualifying inner instance creation should be error.
|
|
|
|
* @author gafter
|
|
|
|
*
|
2011-02-03 09:38:19 +00:00
|
|
|
* @compile/fail/ref=QualifiedNew.out -XDrawDiagnostics QualifiedNew.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class QualifiedNew {
|
|
|
|
class Y {}
|
|
|
|
class Z {
|
|
|
|
Y[] a;
|
|
|
|
Object tmp1 = null.new Y();
|
|
|
|
Object tmp2 = a.new Y();
|
|
|
|
}
|
|
|
|
}
|