public void valueOf(final Type type){
  if (type.getSort() == Type.OBJECT || type.getSort() == Type.ARRAY) {
    return;
  }
  if (type == Type.VOID_TYPE) {
    push((String)null);
  }
 else {
    Type boxed=getBoxedType(type);
    invokeStatic(boxed,new Method("valueOf",boxed,new Type[]{type}));
  }
}

public void valueOf ( final Type type ) { if ( type . getSort ( ) == Type . OBJECT || type . getSort ( ) == Type . ARRAY ) { return ; } if ( type == Type . VOID_TYPE ) { push ( ( String ) null ) ; } else { Type boxed = getBoxedType ( type ) ; invokeStatic ( boxed , new Method ( "valueOf" , boxed , new Type [ ] { type } ) ) ; } }
generates the instructions to box the top stack value using java 5 ' s valueof ( ) method . this value is replaced by its boxed equivalent on top of the stack .
