/**
* Used to describe an array class.
*/
public ConstantClassInfo(ConstantPool cp, String className, int dim) {
super(TAG_CLASS);
TypeDesc type = TypeDesc.forClass(className);
String desc;
if (dim > 0) {
while (--dim >= 0) {
type = type.toArrayType();
}
desc = type.getDescriptor();
} else {
desc = className.replace('.', '/');
}
mType = type;
mNameConstant = cp.addConstantUTF(desc);