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