Thu, 25 Jul 2013 14:51:40 +0100
8020843: javac crashes on accessibility check with method reference with typevar receiver
Summary: method reference overload check doesn't walk through type-variable receivers
Reviewed-by: jjg
duke@1 | 1 | /* |
duke@1 | 2 | * @test /nodynamiccopyright/ |
duke@1 | 3 | * @bug 5048776 |
jjg@611 | 4 | * @compile/ref=T5048776a.out -XDrawDiagnostics T5048776.java |
jjg@611 | 5 | * @compile/ref=T5048776b.out -XDrawDiagnostics -Xlint:all,-path T5048776.java |
duke@1 | 6 | */ |
duke@1 | 7 | class A1 { |
duke@1 | 8 | void foo(Object[] args) { } |
duke@1 | 9 | } |
duke@1 | 10 | |
duke@1 | 11 | class A1a extends A1 { |
duke@1 | 12 | void foo(Object... args) { } |
duke@1 | 13 | } |
duke@1 | 14 | |
duke@1 | 15 | class A2 { |
duke@1 | 16 | void foo(Object... args) { } |
duke@1 | 17 | } |
duke@1 | 18 | |
duke@1 | 19 | class A2a extends A2 { |
duke@1 | 20 | void foo(Object[] args) { } |
duke@1 | 21 | } |