United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6252649 : Remove requirement that component type in ArrayType cannot itself be ArrayType

Details
Type:
Enhancement
Submit Date:
2005-04-08
Status:
Resolved
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2005-05-14
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:

Sub Tasks

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

                                    

Comments
EVALUATION

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



Hardware and Software, Engineered to Work Together