>     i'm trying to convert a long to hex or to string, but KVM
> gives me "Illegal bytecode 0".
>
>     i have to store the long value of currentTimeMillis, but i
> cant do it! every operation with long is getting the same message
> above. like >>, /, %, (new Long(l)).toString(), etc.
>

 I need more information. Perhaps a code example.
 One thing I can tell you is that the code snippet above is incorrect for
the Sun VM.
 The toString method accepts a parameter, is static and thus does not
require allocation.

 Thus:

 String aString = Long.toString(42);

 That converts the long 42 to a String: same with the Integer class.

 I don't know if that helps but it may.

 Good luck

Reply via email to