JDK-6252649 : Remove requirement that component type in ArrayType cannot itself be ArrayType
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-04-08
  • Updated: 2010-07-29
  • Resolved: 2005-05-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6 b37Fixed
Related Reports
Relates :  
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

EVALUATION Simple to fix, can be done along with 5045358. ###@###.### 2005-04-08 16:40:04 GMT