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

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

    XMLWordPrintable

Details

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

    Description

      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);
              }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: