An endianess problem sounds like a buffer overrun, which presumably only happens in native code. I wonder if running kaffe under valgrind while performing the unit test would show anything interesting. Is GNU Classpath written in native code or in Java?