Bug un tableswitch
Parmelan, Edouard
EP510777 at exchange.FRANCE.NCR.com
Tue Jan 26 05:42:51 PST 1999
Hi,
> 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
>
>
> There's something wring in tableswitch generation.
Yep, and it's not ix86 but any arch :(
More information about the kaffe
mailing list