1. Daniel Trebbien
  2. main_nb-javac

Commits

Dusan Balek  committed f0085bb

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

  • Participants
  • Parent commits c2a3eea
  • Branches default

Comments (0)

Files changed (1)

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

View file
  • Ignore whitespace
 
             @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);
         }