langtools/test/tools/javac/OverrideChecks/IncompleteMessageOverride.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 23796 4c722b177a8f
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23796
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     1
/*
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     2
 * @test  /nodynamiccopyright/
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     3
 * @bug 8035956
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     4
 * @summary javac, incomplete error message
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     5
 * @author kizune
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     6
 *
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     7
 * @run compile/fail/ref=IncompleteMessageOverride.out -XDrawDiagnostics IncompleteMessageOverride.java
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     8
 */
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
     9
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
    10
class Super {
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
    11
    static void m() {}
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
    12
}
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
    13
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
    14
class Sub extends Super {
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
    15
    private static void m() {}
4c722b177a8f 8035956: javac, incomplete error message
kizune
parents:
diff changeset
    16
}