Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7041019

Bogus type-variable substitution with array types with dependencies on accessibility check

XMLWordPrintable

    • b100
    • unknown, x86
    • generic, windows_7
    • Verified

      There is a fairly straightforward bug in Types.subst (ArrayType visitor method):

      @Override
              public Type visitArrayType(ArrayType t, Void ignored) {
                  Type elemtype = subst(t.elemtype);
                  if (elemtype == t.elemtype)
                      return t;
                  else
                      return new ArrayType(upperBound(elemtype), t.tsym);
              }

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: