2010-04-14 12:31:55 +01:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
2011-03-07 14:31:50 +00:00
|
|
|
* @bug 7020043 7020044
|
2010-04-14 12:31:55 +01:00
|
|
|
*
|
2011-03-07 14:31:50 +00:00
|
|
|
* @summary Check that diamond is not allowed with non-generic class types
|
|
|
|
* @author Rémi Forax
|
2010-04-14 12:31:55 +01:00
|
|
|
* @compile/fail/ref=Neg08.out Neg08.java -XDrawDiagnostics
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Neg08 {
|
2011-03-07 14:31:50 +00:00
|
|
|
public static void main(String[] args) {
|
|
|
|
String s = new String<>("foo");
|
|
|
|
}
|
2010-04-14 12:31:55 +01:00
|
|
|
}
|