1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/Diagnostics/6860795/T6860795.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,11 @@ 1.4 +/** 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6860795 1.7 + * @summary NullPointerException when compiling a negative java source 1.8 + * @author mcimadamore 1.9 + * @compile/fail/ref=T6860795.out -XDrawDiagnostics T6860795.java 1.10 + */ 1.11 + 1.12 +class Test { 1.13 + void foo(float x, int x) {} 1.14 +}