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

changeset 1628
5ddecb91d843
parent 1550
1df20330f6bd
child 1644
40adaf938847
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Type.java	Tue Mar 12 16:02:13 2013 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Type.java	Tue Mar 12 16:02:43 2013 +0000
     1.3 @@ -1367,7 +1367,7 @@
     1.4              for (Type b : prevBounds) {
     1.5                  //check for redundancy - use strict version of isSameType on tvars
     1.6                  //(as the standard version will lead to false positives w.r.t. clones ivars)
     1.7 -                if (types.isSameType(b, bound2, true)) return;
     1.8 +                if (types.isSameType(b, bound2, true) || bound == qtype) return;
     1.9              }
    1.10              bounds.put(ib, prevBounds.prepend(bound2));
    1.11              notifyChange(EnumSet.of(ib));

mercurial