Mon, 26 Mar 2012 15:28:49 +0100
7133185: Update 292 overload resolution logic to match JLS
Summary: Re-implement special overload resolution support for method handles according to the JLS SE 7 definition
Reviewed-by: jjg, dlsmith, jrose
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 | } |