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=DiagnosticRewriterTest2.out -Xdiags:compact -XDrawDiagnostics DiagnosticRewriterTest2.java |
sadayapalam@3005 | 6 | */ |
sadayapalam@3005 | 7 | |
sadayapalam@3005 | 8 | class DiagnosticRewriterTest2 { |
sadayapalam@3005 | 9 | class Bar { |
sadayapalam@3005 | 10 | Bar(Object o) { } |
sadayapalam@3005 | 11 | } |
sadayapalam@3005 | 12 | void test() { |
sadayapalam@3005 | 13 | new Bar(null) { |
sadayapalam@3005 | 14 | void g() { |
sadayapalam@3005 | 15 | m(2L); |
sadayapalam@3005 | 16 | m(); |
sadayapalam@3005 | 17 | } |
sadayapalam@3005 | 18 | }; |
sadayapalam@3005 | 19 | } |
sadayapalam@3005 | 20 | |
sadayapalam@3005 | 21 | void m(int i) { } |
sadayapalam@3005 | 22 | } |