src/share/classes/com/sun/tools/javac/code/Types.java

changeset 134
8c098cf64ab5
parent 121
609fb59657b4
child 136
8eafba4f61be
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Types.java	Thu Oct 09 15:56:20 2008 +0100
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Types.java	Thu Oct 09 16:02:29 2008 +0100
     1.3 @@ -1430,6 +1430,10 @@
     1.4                  long flags = sym.flags();
     1.5                  if (((flags & STATIC) == 0) && owner.type.isParameterized()) {
     1.6                      Type base = asOuterSuper(t, owner);
     1.7 +                    //if t is an intersection type T = CT & I1 & I2 ... & In
     1.8 +                    //its supertypes CT, I1, ... In might contain wildcards
     1.9 +                    //so we need to go through capture conversion
    1.10 +                    base = t.isCompound() ? capture(base) : base;
    1.11                      if (base != null) {
    1.12                          List<Type> ownerParams = owner.type.allparams();
    1.13                          List<Type> baseParams = base.allparams();

mercurial