[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Classpath] bug in >>> operator?
From: |
C. Scott Ananian |
Subject: |
Re: [Classpath] bug in >>> operator? |
Date: |
Tue, 10 Sep 2002 11:14:02 -0400 (EDT) |
This is almost certainly a sablevm bug, and not a classpath bug.
I've cc'ed the sablevm-bugs list.
--scott
On 10 Sep 2002, Emile Snyder wrote:
> Hi all,
>
> I'm using the 1.0.3 version of sablevm, and it's associated classpath.
> I haven't managed to get a CVS-checked-out version of classpath up and
> running with any VM yet. If this is fixed in the tree, or simply a VM
> issue I apologize in advance.
>
> The >>>= and >>> operators appear to be broken strangely. Demo class
> and output:
>
> ==============================================================
> import java.lang.*;
> import java.awt.color.*;
> import java.awt.image.*;
>
> public class ShiftBug {
> public static void main (String argv[])
> {
> long a = 0xff00;
> long b, c;
>
> b = a >>> 4;
> c = 0xff00 >>> 4;
> System.out.print (Long.toString(b,16) + " " + Long.toString(c,16) +
> "\n");
> }
> }
> ===================================================
>
> Output:
>
> address@hidden esnyder]$ jikes -classpath
> /usr/local/lib/sablevm/classes-1.0.3 ShiftBug.java
> address@hidden esnyder]$ sablevm -Y ShiftBug
> ff000 ff0
>
> thanks,
> -emile
>
>
>
>
> _______________________________________________
> Classpath mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/classpath
>
>
strategic Treasury shotgun NRA Yeltsin Marxist plastique RNC explosion
corporate globalization Mossad Columbia Minister Boston Justice Shoal Bay
( http://cscott.net/ )
- bug in >>> operator?, Emile Snyder, 2002/09/10
- Re: [Classpath] bug in >>> operator?,
C. Scott Ananian <=