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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b100
    • CPU:
      unknown, x86
    • OS:
      generic, windows_7
    • Verification:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: