From: <no...@so...> - 2002-09-10 15:48:20
|
Bugs item #607368, was opened at 2002-09-10 08:48 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105523&aid=607368&group_id=5523 Category: Execution Problem Group: SableVM Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: bug in >>> operator? Initial Comment: I'm using the 1.0.3 version of sablevm, and it's associated classpath. 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: [esnyder@basalt esnyder]$ jikes -classpath /usr/local/lib/sablevm/classes-1.0.3 ShiftBug.java [esnyder@basalt esnyder]$ sablevm -Y ShiftBug ff000 ff0 thanks, -emile ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105523&aid=607368&group_id=5523 |