changeset 40504 | 0a01f6710c84 |
parent 29776 | 984a79b71cfe |
40503:cb34fd6e8071 | 40504:0a01f6710c84 |
---|---|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 7020044 8062373 |
|
4 * |
|
5 * @summary Check that diamond is not allowed with anonymous inner class expressions at source < 9 |
|
6 * @author Maurizio Cimadamore |
|
7 * @compile/fail/ref=Neg09c.out Neg09c.java -source 8 -XDrawDiagnostics |
|
8 * |
|
9 */ |
|
10 |
|
11 class Neg09c { |
|
12 class Member<X> {} |
|
13 |
|
14 void testQualified() { |
|
15 Member<?> m1 = this.new Member<>() {}; |
|
16 } |
|
17 } |