public class BytecodeHelper implements Opcodes(Code)
A helper class for bytecode generation with AsmClassGenerator.
author: James Strachan author: Bing Ran author: Jochen Theodorou version: $Revision: 4287 $
getClassLoadingTypeDescription(ClassNode c) array types are special:
eg.: String[]: classname: [Ljava.lang.String;
Object: classname: java.lang.Object
int[] : classname: [I
unlike getTypeDescription '.' is not replaces by '/'.
returns a name that Class.forName() can take. Notablely for arrays:
[I, [Ljava.lang.String; etc
Regular object type: java.lang.String
Parameters: name -
array types are special:
eg.: String[]: classname: [Ljava.lang.String;
Object: classname: java.lang.Object
int[] : classname: [I
unlike getTypeDescription '.' is not replaces by '/'.
it seems that makes problems for
the class loading if '.' is replaced by '/'
the ASM type description for class loading