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

changeset 79
36df13bde238
parent 54
eaf608c64fec
child 93
30a415f8667f
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Types.java	Thu Jul 24 10:35:38 2008 +0100
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Types.java	Thu Jul 24 11:12:41 2008 +0100
     1.3 @@ -835,7 +835,7 @@
     1.4          };
     1.5  
     1.6      public boolean isCaptureOf(Type s, WildcardType t) {
     1.7 -        if (s.tag != TYPEVAR || !(s instanceof CapturedType))
     1.8 +        if (s.tag != TYPEVAR || !((TypeVar)s).isCaptured())
     1.9              return false;
    1.10          return isSameWildcard(t, ((CapturedType)s).wildcard);
    1.11      }

mercurial