1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/rawDiags/Warning.java Sat Dec 01 00:00:00 2007 +0000 1.3 @@ -0,0 +1,17 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6177732 1.7 + * @summary add hidden option to have compiler generate diagnostics in more machine-readable form 1.8 + * @compile/ref=Warning.out -XDrawDiagnostics -XDstdout -Xlint:unchecked Warning.java 1.9 + */ 1.10 + 1.11 +import java.util.HashSet; 1.12 +import java.util.Set; 1.13 + 1.14 +class Warning 1.15 +{ 1.16 + static void useUnchecked() { 1.17 + Set s = new HashSet<String>(); 1.18 + s.add("abc"); 1.19 + } 1.20 +}