author | hseigel |
Wed, 02 Mar 2016 23:48:41 +0000 | |
changeset 36397 | c487ced7231c |
parent 30721 | 1024d425d97e |
permissions | -rw-r--r-- |
10 | 1 |
/* |
30721
1024d425d97e
8074425: Group 13b: golden files for tests in tools/javac/generics dir
sogoel
parents:
7681
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4471667 |
4 |
* @summary compiler allows overriding with different primitive return type |
|
5 |
* @author gafter |
|
6 |
* |
|
30721
1024d425d97e
8074425: Group 13b: golden files for tests in tools/javac/generics dir
sogoel
parents:
7681
diff
changeset
|
7 |
* @compile/fail/ref=PrimitiveVariant.out -XDrawDiagnostics PrimitiveVariant.java |
10 | 8 |
*/ |
9 |
||
5011 | 10 |
package PrimitiveVariant; |
10 | 11 |
|
12 |
interface I { |
|
13 |
double m(); |
|
14 |
} |
|
15 |
||
16 |
abstract class J { |
|
17 |
int m() { return 2; } |
|
18 |
} |
|
19 |
||
20 |
class Main extends J implements I { |
|
21 |
public short m() { return 1; } |
|
22 |
} |