author | sadayapalam |
Mon, 03 Jul 2017 12:58:30 +0530 | |
changeset 45758 | b2a0122861f5 |
parent 28705 | 675cb37e74a8 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
28705
675cb37e74a8
8068463: Group 10c: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
45758
b2a0122861f5
8068836: Error message should be updated when Override is used with static methods
sadayapalam
parents:
28705
diff
changeset
|
3 |
* @bug 6359949 8068836 |
b2a0122861f5
8068836: Error message should be updated when Override is used with static methods
sadayapalam
parents:
28705
diff
changeset
|
4 |
* @summary (at)Override of static methods shouldn't be accepted (compiler should issue an error) |
28705
675cb37e74a8
8068463: Group 10c: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
5 |
* @compile/fail/ref=T6359949a.out -XDrawDiagnostics T6359949a.java |
10 | 6 |
*/ |
7 |
||
8 |
class Example { |
|
9 |
public static void example() { |
|
10 |
||
11 |
} |
|
12 |
} |
|
13 |
||
14 |
class Test extends Example { |
|
15 |
@Override |
|
16 |
public static void example() { |
|
17 |
||
18 |
} |
|
19 |
} |