--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Infer.java Tue Oct 22 10:08:49 2013 +0200
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Infer.java Tue Oct 22 13:54:49 2013 +0100
@@ -1768,9 +1768,11 @@
public Type apply(Type t) {
if (t.hasTag(TYPEVAR)) {
TypeVar tv = (TypeVar)t;
- return tv.isCaptured() ?
- new CapturedUndetVar((CapturedType)tv, types) :
- new UndetVar(tv, types);
+ if (tv.isCaptured()) {
+ return new CapturedUndetVar((CapturedType)tv, types);
+ } else {
+ return new UndetVar(tv, types);
+ }
} else {
return t.map(this);
}