Tue, 21 May 2013 13:50:56 +0100
8005207: test has 2 @bug tags
Reviewed-by: mcimadamore
duke@1 | 1 | /* |
duke@1 | 2 | * @test /nodynamiccopyright/ |
duke@1 | 3 | * @bug 4524388 4785453 |
duke@1 | 4 | * @summary "attemping to assign weaker access" message doesn't give method line number |
duke@1 | 5 | * @author Neal Gafter |
duke@1 | 6 | * |
jjg@611 | 7 | * @compile/fail/ref=OverridePosition.out -XDrawDiagnostics OverridePosition.java |
duke@1 | 8 | */ |
duke@1 | 9 | |
duke@1 | 10 | package T4524388; |
duke@1 | 11 | |
duke@1 | 12 | interface Interface { |
duke@1 | 13 | void method(); |
duke@1 | 14 | } |
duke@1 | 15 | |
duke@1 | 16 | class Testa implements Interface { |
duke@1 | 17 | void method() {} |
duke@1 | 18 | } |
duke@1 | 19 | |
duke@1 | 20 | class A { |
duke@1 | 21 | void method() {} |
duke@1 | 22 | } |
duke@1 | 23 | |
duke@1 | 24 | class B extends A implements Interface { |
duke@1 | 25 | } |