Commits

Anonymous committed f0085bb

Types.isSameType(...) modified for ErrorTypes.

Comments (0)

Files changed (1)

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

 
             @Override
             public Boolean visitErrorType(ErrorType t, Type s) {
-                return true;
+                return s.isErroneous() && t.tsym.name == s.tsym.name;
             }
         };
     // </editor-fold>
                 return isSameType(t, s);
             }
         case ERROR:
-            return true;
+            return isSameType(t, s);
         default:
             return containsType(s, t);
         }