|
Java example source code file (QualifiedNew.java)
The QualifiedNew.java Java example source code
/*
* @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();
}
}
Other Java examples (source code examples)Here is a short list of links related to this Java QualifiedNew.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.