Mon, 19 Jun 2017 14:51:25 -0700
Added tag jdk8u151-b02 for changeset 732e1bab2660
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 8145466 8146533
4 * @summary javac: No line numbers in compilation error
5 * @compile/fail/ref=DiagnosticRewriterTest.out -Xdiags:compact -XDrawDiagnostics DiagnosticRewriterTest.java
6 */
8 class DiagnosticRewriterTest {
9 void test() {
10 new Object() {
11 void g() {
12 m(2L);
13 }
14 };
15 }
17 void m(int i) { }
18 }