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

Remove requirement that component type in ArrayType cannot itself be ArrayType

XMLWordPrintable

    • b37
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: