Sat, 22 Dec 2018 13:10:38 -0800
Added tag jdk8u202-b25 for changeset 15d8c732039b
sadayapalam@3005 | 1 | /* |
sadayapalam@3005 | 2 | * @test /nodynamiccopyright/ |
sadayapalam@3005 | 3 | * @bug 8145466 8146533 |
sadayapalam@3005 | 4 | * @summary javac: No line numbers in compilation error |
sadayapalam@3005 | 5 | * @compile/fail/ref=DiagnosticRewriterTest.out -Xdiags:compact -XDrawDiagnostics DiagnosticRewriterTest.java |
sadayapalam@3005 | 6 | */ |
sadayapalam@3005 | 7 | |
sadayapalam@3005 | 8 | class DiagnosticRewriterTest { |
sadayapalam@3005 | 9 | void test() { |
sadayapalam@3005 | 10 | new Object() { |
sadayapalam@3005 | 11 | void g() { |
sadayapalam@3005 | 12 | m(2L); |
sadayapalam@3005 | 13 | } |
sadayapalam@3005 | 14 | }; |
sadayapalam@3005 | 15 | } |
sadayapalam@3005 | 16 | |
sadayapalam@3005 | 17 | void m(int i) { } |
sadayapalam@3005 | 18 | } |