[kaffe] Re: Classpath's doubleToLongBits

2008-02-18 Thread Christian Thalinger
On Mon, 2008-02-18 at 04:03 +0100, Dalibor Topic wrote: This one turned out to be a lot more fun to track down. It's pretty easy to rewrite the test whether to swap words in a jdouble: put -0.0 into a jvalue's jdouble element, and if the correspoding jlong bitstream is 0, you have to

[kaffe] Re: Classpath's doubleToLongBits

2008-02-18 Thread Christian Thalinger
On Mon, 2008-02-18 at 12:44 +0100, Dalibor Topic wrote: That sounds like it was a lot of work. Did you change anything new in GNU Classpath or should I test the current CVS version I wrote a patch using the -0.0d 0L hack described above to detect whether we should switch words in a

[kaffe] Re: Classpath's doubleToLongBits

2008-02-11 Thread Christian Thalinger
On Fri, 2008-02-08 at 12:25 +0100, Dalibor Topic wrote: Yeah, that's why I'd like to go step by step, and first slash the VM interface methods I can slash, and then implement it with ieee754.h as an option, (adding a #define BIG_ENDIAN __BIG_ENDIAN for the broken glibc versions). I'll make

Re: Classpath's doubleToLongBits (was: Re: [kaffe] cross-compile error)

2008-02-11 Thread Christian Thalinger
On Fri, 2008-02-08 at 00:26 +0100, Dalibor Topic wrote: I've looked a bit closer at the 3 ARM OABI errors, in particular at the errors in test/regression/DoubleConst.java . That test fails because we get the bitstreams of the doubles being tested when we call Double.doubleToLongbits with

[kaffe] missing ArrayIndexOutOfBoundsException in defineClass

2005-04-03 Thread Christian Thalinger
While testing and implementing CACAO's defineClass, if found this issue: $ cat MyClassLoader.java import java.io.*; public class MyClassLoader extends ClassLoader { public static void main(String[] argv) throws Exception { new MyClassLoader(); } public MyClassLoader() throws