Check out this java class: ---------- class Data { double doubleVal = Double.NaN; } ---------- Attempting to compile this java code with Kaffe's javac (pizza) will result in the following ArithmeticException on my brand new Linux/Alpha DP264: ======================================================= An exception has occurred in the compiler. (v0.39g) Please file a bug report by sending your program and the following diagnostic topizza.edu.au. Thank you. java.lang.ArithmeticException at pizza.v39.DoubleConst.hashCode(consttypes.pizza:220) at pizza.v39.Pool.put(bytecode.pizza:209) at pizza.v39.Gen.putConstant(gen.pizza:510) at pizza.v39.ImmediateItem.ldc(items.pizza:381) at pizza.v39.ImmediateItem.load(items.pizza:427) at pizza.v39.ByteCodeGen.genExpr(bytecodegen.pizza:992) at pizza.v39.ByteCodeGen.genStat(bytecodegen.pizza:517) at pizza.v39.ByteCodeGen.genStats(bytecodegen.pizza:745) at pizza.v39.ByteCodeGen.genTry(bytecodegen.pizza:236) at pizza.v39.ByteCodeGen.genDef(bytecodegen.pizza:294) at pizza.v39.ByteCodeGen.genDef(bytecodegen.pizza:287) at pizza.v39.ByteCodeGen.generate(bytecodegen.pizza:270) at pizza.v39.Main.process(main.pizza:236) at pizza.v39.Main.compile(main.pizza:298) at pizza.v39.Main.main(main.pizza:372) at pizza.compiler.Main.main(Main.pizza:20) ======================================================= I bet this is a problem with Kaffe and not pizza itself, but perhaps you can help me debug this.... (P.S. I've sent a copy of this to pizza bug mailing list)
FWIW, it works OK with the latest kaffe CVS snapshots...
since it is fixed in the kaffe CVS, we will provide a fix when the next offcial kaffe release is made.