langtools/test/tools/javac/OverrideChecks/IncompleteMessageOverride.java
author sogoel
Thu, 05 Jun 2014 10:57:10 -0700
changeset 24797 850ebd4d80a7
parent 23796 4c722b177a8f
permissions -rw-r--r--
8044072: Group 2: create .out files for OverrideChecks tests in tools/javac dir Reviewed-by: jjg
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
}