test/tools/javac/diags/DiagnosticRewriterTest2.java

Mon, 17 Oct 2016 21:20:17 -0700

author
asaha
date
Mon, 17 Oct 2016 21:20:17 -0700
changeset 3306
867c01c1ae44
parent 3005
0353cf89ea96
permissions
-rw-r--r--

8168115: Remove and retag jdk8u122-b03 in 8u repo
Reviewed-by: coffeys

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8145466 8146533
     4  * @summary javac: No line numbers in compilation error
     5  * @compile/fail/ref=DiagnosticRewriterTest2.out -Xdiags:compact -XDrawDiagnostics DiagnosticRewriterTest2.java
     6  */
     8 class DiagnosticRewriterTest2 {
     9    class Bar {
    10        Bar(Object o) { }
    11    }
    12    void test() {
    13       new Bar(null) {
    14          void g() {
    15             m(2L);
    16             m();
    17          }
    18       };
    19    }
    21    void m(int i) { }
    22 }

mercurial