protected void box(Class clazz) { if (clazz.isPrimitive()) { if (clazz.equals(Void.TYPE)) { aconst_null(); } else { Class wrapper = (Class)primitiveToWrapper.get(clazz); new_instance(wrapper); if (getStackSize(clazz) == 2) {  dup_x2(); dup_x2(); pop(); } else {  dup_x1(); swap(); } invoke_constructor(wrapper, new Class[]{ clazz }); }
private void box(Type type) { if (type instanceof BasicType) { box(getPrimitiveClass((BasicType)type));
    protected void box(Class clazz) {        if (clazz.isPrimitive()) {            if (clazz.equals(Void.TYPE)) {                aconst_null();            } else {                Class wrapper = (Class)primitiveToWrapper.get(clazz);                new_instance(wrapper);                if (getStackSize(clazz) == 2) {                    // Pp -> Ppo -> oPpo -> ooPpo -> ooPp -> o                    dup_x2();                    dup_x2();                    pop();                } else {                    // p -> po -> opo -> oop -> o                    dup_x1();                    swap();                }                invoke_constructor(wrapper, new Class[]{ clazz });            }        }    }