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

changeset 1222
eaae5cf911be
parent 1086
f595d8bc0599
child 1239
2827076dbf64
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Symbol.java	Tue Mar 06 16:48:29 2012 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Symbol.java	Tue Mar 06 16:50:32 2012 +0000
     1.3 @@ -1235,7 +1235,7 @@
     1.4              // if origin is derived from a raw type, we might have missed
     1.5              // an implementation because we do not know enough about instantiations.
     1.6              // in this case continue with the supertype as origin.
     1.7 -            if (types.isDerivedRaw(origin.type))
     1.8 +            if (types.isDerivedRaw(origin.type) && !origin.isInterface())
     1.9                  return implementation(types.supertype(origin.type).tsym, types, checkResult);
    1.10              else
    1.11                  return null;

mercurial