diff -r 000000000000 -r 959103a6100f test/tools/javac/Diagnostics/6860795/T6860795.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/Diagnostics/6860795/T6860795.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,11 @@ +/** + * @test /nodynamiccopyright/ + * @bug 6860795 + * @summary NullPointerException when compiling a negative java source + * @author mcimadamore + * @compile/fail/ref=T6860795.out -XDrawDiagnostics T6860795.java + */ + +class Test { + void foo(float x, int x) {} +}