1.1 --- a/src/share/classes/com/sun/tools/javac/code/Type.java Thu Oct 04 13:04:53 2012 +0100 1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Type.java Fri Oct 05 14:35:24 2012 +0100 1.3 @@ -1220,9 +1220,13 @@ 1.4 } 1.5 1.6 public UndetVar(TypeVar origin, Types types) { 1.7 + this(origin, types, true); 1.8 + } 1.9 + 1.10 + public UndetVar(TypeVar origin, Types types, boolean includeBounds) { 1.11 super(UNDETVAR, origin); 1.12 bounds = new EnumMap<InferenceBound, List<Type>>(InferenceBound.class); 1.13 - bounds.put(InferenceBound.UPPER, types.getBounds(origin)); 1.14 + bounds.put(InferenceBound.UPPER, includeBounds ? types.getBounds(origin) : List.<Type>nil()); 1.15 bounds.put(InferenceBound.LOWER, List.<Type>nil()); 1.16 bounds.put(InferenceBound.EQ, List.<Type>nil()); 1.17 }