langtools/test/tools/javac/OverrideChecks/IncompleteMessageOverride.java
author mcimadamore
Wed, 26 Oct 2016 15:41:25 +0100
changeset 41856 13a056e8f16e
parent 23796 4c722b177a8f
permissions -rw-r--r--
8168774: Polymorhic signature method check crashes javac Summary: Check for polysig method assumes arity is greater than zero Reviewed-by: vromero
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
}