1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/generics/diamond/neg/Neg12.java Fri Feb 18 12:28:49 2011 +0000 1.3 @@ -0,0 +1,15 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 7020043 1.7 + * 1.8 + * @summary Project Coin: diamond allowed on non-generic type 1.9 + * @author Rémi Forax 1.10 + * @compile/fail/ref=Neg12.out Neg12.java -XDrawDiagnostics 1.11 + * 1.12 + */ 1.13 + 1.14 +class DiamondRaw { 1.15 + public static void main(String[] args) { 1.16 + String s = new String<>("foo"); 1.17 + } 1.18 +}