Stephen,

>>  I need more information. Perhaps a code example.

    try:
         long l = System.currentTimeMillis(); 
         long a = l / 16;
         long b = l >> 4;

    the last 2 lines gives "Illegal bytecode 0".


>>>
 String aString = Long.toString(42);

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

        Sorry. but do the method above REALLY exists? i've decompiled the 
java.lang.Long class (using DeCafe) and its listing is bellow:

--------------------------------------------------------------------------------------------------
package java.lang;

// Referenced classes of package java.lang:
//            Object

public final class Long
{

    public static final long MIN_VALUE = 0x8000000000000000L;
    public static final long MAX_VALUE = 0x7fffffffffffffffL;
    private long value;
    private static final long serialVersionUID = 0x3b8be490cc8f23dfL;

    public Long(long l)
    {
        value = l;
    }

    public boolean equals(Object obj)
    {
        if(obj != null && (obj instanceof Long))
            return value == ((Long)obj).longValue();
        else
            return false;
    }

    public int hashCode()
    {
        return (int)(value ^ value >> 32);
    }

    public long longValue()
    {
        return value;
    }
}
--------------------------------------------------------------------------------------------------

        so, as above, the method Long.toString does not exists.

        if i try the Long.toString(42), the kvm says: "No such Method 
toString.(J)Ljava/lang/String;", perhaps it compiles ok.

        any other idea?

                 guich.

Reply via email to