2010-04-14 12:31:55 +01:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
2015-03-30 17:09:14 +05:30
|
|
|
* @bug 7020044 8062373
|
2010-04-14 12:31:55 +01:00
|
|
|
*
|
2015-03-30 17:09:14 +05:30
|
|
|
* @summary Check that diamond is not allowed with anonymous inner class expressions at source < 9
|
2011-03-07 14:31:50 +00:00
|
|
|
* @author Maurizio Cimadamore
|
2018-07-16 21:53:49 -07:00
|
|
|
* @compile/fail/ref=Neg09b.out Neg09b.java -source 8 -XDrawDiagnostics -Xlint:-options
|
2010-04-14 12:31:55 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-08-16 16:43:00 +02:00
|
|
|
class Neg09b {
|
2010-04-14 12:31:55 +01:00
|
|
|
|
2011-03-07 14:31:50 +00:00
|
|
|
static class Nested<X> {}
|
|
|
|
|
|
|
|
void testSimple() {
|
|
|
|
Nested<?> m2 = new Nested<>() {};
|
|
|
|
}
|
|
|
|
|
2010-04-14 12:31:55 +01:00
|
|
|
}
|