Thu, 21 Feb 2013 15:26:46 +0000
8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Summary: Fix regression in varargs method resolution introduced by bad refactoring
Reviewed-by: jjg
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 }