jdk-24/test/langtools/tools/javac/Diagnostics/6860795/T6860795.java
2017-09-12 19:03:39 +02:00

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) {}
}