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

23 lines
443 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8145466
* @summary javac: No line numbers in compilation error
* @compile/fail/ref=DiagnosticRewriterTest2.out -Xdiags:compact -XDrawDiagnostics DiagnosticRewriterTest2.java
*/
class DiagnosticRewriterTest2 {
class Bar {
Bar(Object o) { }
}
void test() {
new Bar(null) {
void g() {
m(2L);
m();
}
};
}
void m(int i) { }
}