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

Remove requirement that component type in ArrayType cannot itself be ArrayType

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b37
    • CPU:
      generic
    • OS:
      generic

      Description

      The spec for Open MBeans currently says of the ArrayType constructor:
      @throws OpenDataException if elementType is an instanceof ArrayType.

      That is, you cannot write:
      ArrayType at = new ArrayType(1, SimpleType.STRING);
      ArrayType at2 = new ArrayType(1, at);
      to get an ArrayType that represents a two-dimensional array of Strings.

      This restriction is pointless and makes code unnecessarily hard to write. For example, the MXBean infrastructure needs to code special cases because of this.
      ###@###.### 2005-04-08 16:40:03 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lmalvent Luis-Miguel Alventosa (Inactive)
              Reporter:
              emcmanus Eamonn McManus
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: