afu8u/langtools/test/tools/javac/Diagnostics/6860795/T6860795.java

12 lines
268 B
Java

/**
* @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) {}
}