diff -r 000000000000 -r 959103a6100f test/tools/javac/rawDiags/Warning.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/rawDiags/Warning.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,17 @@ +/* + * @test /nodynamiccopyright/ + * @bug 6177732 + * @summary add hidden option to have compiler generate diagnostics in more machine-readable form + * @compile/ref=Warning.out -XDrawDiagnostics -Xlint:unchecked Warning.java + */ + +import java.util.HashSet; +import java.util.Set; + +class Warning +{ + static void useUnchecked() { + Set s = new HashSet(); + s.add("abc"); + } +}