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

changeset 1071
b86277584776
parent 1015
6bb526ccf5ff
child 1072
d0257833498e
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Types.java	Fri Aug 05 19:41:05 2011 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Types.java	Wed Aug 31 16:11:28 2011 +0100
     1.3 @@ -269,10 +269,12 @@
     1.4  
     1.5      // <editor-fold defaultstate="collapsed" desc="isConvertible">
     1.6      /**
     1.7 -     * Is t a subtype of or convertiable via boxing/unboxing
     1.8 -     * convertions to s?
     1.9 +     * Is t a subtype of or convertible via boxing/unboxing
    1.10 +     * conversion to s?
    1.11       */
    1.12      public boolean isConvertible(Type t, Type s, Warner warn) {
    1.13 +        if (t.tag == ERROR)
    1.14 +            return true;
    1.15          boolean tPrimitive = t.isPrimitive();
    1.16          boolean sPrimitive = s.isPrimitive();
    1.17          if (tPrimitive == sPrimitive) {

mercurial