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
1 /**
2 * @test
3 * @bug 6547131
4 * @summary java.lang.ClassFormatError when using old collection API
5 * @compile T.java
6 * @run main T
7 */
9 import p.*;
11 class SubI implements Outer.I {
12 SubI() { }
13 Outer.I getI() { return this; }
14 }
16 public class T {
17 public static void main(String argv[]){
18 SubI sub = new SubI();
19 Outer.I inter = (Outer.I)sub.getI();
20 }
21 }