From: Archie Cobbs (archie@whistle.com)
Date: Mon Feb 01 1999 - 02:32:54 EST
It looks like this bug hasn't been fixed yet.
I don't know enough to fix it myself.
> public class Test {
> public static void main(String[] args) {
> int i = 0x7fffffff;
> System.out.println("switch("+i+")");
> switch(i) {
> case -1: System.out.println("-1"); break;
> case 0: System.out.println("0"); break;
> case 1: System.out.println("1"); break;
> default: System.out.println("default"); break;
> }
> }
> }
>
> > javac Test.java
> > java Test
> switch(2147483647)
> default
>
> > kaffe Test
> switch(2147483647)
> -1
Thanks,
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:53 EDT