v 3.2: getElementType() yields an "ArrayIndexOutOfBoundsException"
Experimenting with "org.objectweb.asm.Type", creating a Type object for an
array, and thereafter trying to get its element type yields the aforementioned
exception.
Something like:
Type t2=Type.getObjectType("[[[java/lang/Byte");
System.out.println("t2.getDimensions()="+t2.getDimensions());
System.out.println("t2.getElementType()="+t2.getElementType());
will yield the following output:
E:\rony\dev\bsf\src\source_cc_40\extendJava\dev>java TestType
t2.getDimensions()=3
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 17
at org.objectweb.asm.Type.a(Unknown Source)
at org.objectweb.asm.Type.getElementType(Unknown Source)
at TestType.main(TestType.java:12)
---rony, 2009-07-23