2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-09 06:01:20 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4295650
|
|
|
|
* @summary Verify that qualified 'new' of static class is forbidden.
|
|
|
|
* @author maddox (after gbracha)
|
2015-01-09 06:01:20 +00:00
|
|
|
* @compile/fail/ref=StaticQualifiedNew.out -XDrawDiagnostics StaticQualifiedNew.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
import p2.X;
|
|
|
|
|
|
|
|
class StaticQualifiedNew extends X {
|
|
|
|
|
|
|
|
X.M m2 = new X().new M();
|
|
|
|
|
|
|
|
}
|