changeset 33713 | dc1d2632935c |
33712:fd1ce6d7ac63 | 33713:dc1d2632935c |
---|---|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 8139255 |
|
4 * @summary javac emits diagnostic message as overriding instead of hiding for class methods. |
|
5 * @compile/fail/ref=T8139255.out -XDrawDiagnostics T8139255.java |
|
6 */ |
|
7 |
|
8 public class T8139255 { |
|
9 static void func() { } |
|
10 } |
|
11 |
|
12 class T8139255_1 extends T8139255 { |
|
13 static int func() { return 0; } |
|
14 } |