author | mcimadamore |
Thu, 21 May 2009 10:56:36 +0100 | |
changeset 2984 | e15ff3a34054 |
parent 10 | 06bc494ca11e |
child 6150 | d055fa8ced62 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 4524388 4785453 |
|
4 |
* @summary "attemping to assign weaker access" message doesn't give method line number |
|
5 |
* @author Neal Gafter |
|
6 |
* |
|
2984
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
10
diff
changeset
|
7 |
* @compile/fail/ref=OverridePosition.out -XDstdout -XDrawDiagnostics OverridePosition.java |
10 | 8 |
*/ |
9 |
||
10 |
package T4524388; |
|
11 |
||
12 |
interface Interface { |
|
13 |
void method(); |
|
14 |
} |
|
15 |
||
16 |
class Testa implements Interface { |
|
17 |
void method() {} |
|
18 |
} |
|
19 |
||
20 |
class A { |
|
21 |
void method() {} |
|
22 |
} |
|
23 |
||
24 |
class B extends A implements Interface { |
|
25 |
} |