protected static void autoBoxing(MethodVisitor mv,Type fieldType){
switch (fieldType.getSort()) {
case Type.BOOLEAN:
    mv.visitMethodInsn(INVOKESTATIC,"java/lang/Boolean","valueOf","(Z)Ljava/lang/Boolean;");
  break;
case Type.BYTE:
mv.visitMethodInsn(INVOKESTATIC,"java/lang/Byte","valueOf","(B)Ljava/lang/Byte;");
break;
case Type.CHAR:
mv.visitMethodInsn(INVOKESTATIC,"java/lang/Character","valueOf","(C)Ljava/lang/Character;");
break;
case Type.SHORT:
mv.visitMethodInsn(INVOKESTATIC,"java/lang/Short","valueOf","(S)Ljava/lang/Short;");
break;
case Type.INT:
mv.visitMethodInsn(INVOKESTATIC,"java/lang/Integer","valueOf","(I)Ljava/lang/Integer;");
break;
case Type.FLOAT:
mv.visitMethodInsn(INVOKESTATIC,"java/lang/Float","valueOf","(F)Ljava/lang/Float;");
break;
case Type.LONG:
mv.visitMethodInsn(INVOKESTATIC,"java/lang/Long","valueOf","(J)Ljava/lang/Long;");
break;
case Type.DOUBLE:
mv.visitMethodInsn(INVOKESTATIC,"java/lang/Double","valueOf","(D)Ljava/lang/Double;");
break;
}
}

protected static void autoBoxing ( MethodVisitor mv , Type fieldType ) { switch ( fieldType . getSort ( ) ) { case Type . BOOLEAN : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Boolean" , "valueOf" , "(Z)Ljava/lang/Boolean;" ) ; break ; case Type . BYTE : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Byte" , "valueOf" , "(B)Ljava/lang/Byte;" ) ; break ; case Type . CHAR : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Character" , "valueOf" , "(C)Ljava/lang/Character;" ) ; break ; case Type . SHORT : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Short" , "valueOf" , "(S)Ljava/lang/Short;" ) ; break ; case Type . INT : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Integer" , "valueOf" , "(I)Ljava/lang/Integer;" ) ; break ; case Type . FLOAT : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Float" , "valueOf" , "(F)Ljava/lang/Float;" ) ; break ; case Type . LONG : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Long" , "valueOf" , "(J)Ljava/lang/Long;" ) ; break ; case Type . DOUBLE : mv . visitMethodInsn ( INVOKESTATIC , "java/lang/Double" , "valueOf" , "(D)Ljava/lang/Double;" ) ; break ; } }
append the call of proper autoboxing method for the given primitif type .
