diff -r 5a9b808557b6 -r 91eea580fbe9 src/share/classes/com/sun/tools/javac/comp/Infer.java --- a/src/share/classes/com/sun/tools/javac/comp/Infer.java Thu Sep 04 14:56:35 2008 -0700 +++ b/src/share/classes/com/sun/tools/javac/comp/Infer.java Tue Sep 09 10:28:21 2008 -0700 @@ -204,7 +204,7 @@ return true; } - /** Instaniate undetermined type variable to the lub of all its lower bounds. + /** Instantiate undetermined type variable to the lub of all its lower bounds. * Throw a NoInstanceException if this not possible. */ void minimizeInst(UndetVar that, Warner warn) throws NoInstanceException { @@ -216,7 +216,7 @@ else { that.inst = types.lub(that.lobounds); } - if (that.inst == null || that.inst == syms.errType) + if (that.inst == null || that.inst.tag == ERROR) throw ambiguousNoInstanceException .setMessage("no.unique.minimal.instance.exists", that.qtype, that.lobounds);