[Bug 90] java.nio.ByteOrder.nativeOrder() raises a NullPointerException
| Newsgroups | gmane.comp.java.vm.sablevm.bugs |
|---|---|
| Message-ID | <[email protected]> |
http://sablevm.org/bugs/show_bug.cgi?id=90 [email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From [email protected] 2005-01-18 13:03 ------- First there is a missing void in the test case: 8<---------------------------- import java.nio.ByteOrder; public class Test { public static void main(String args[]) { ByteOrder.nativeOrder(); } } 8<------------------------- Yes, bug is confirmed. Code: public static ByteOrder nativeOrder() { return (System.getProperty ("gnu.cpu.endian").equals("big") ? BIG_ENDIAN : LITTLE_ENDIAN); } We don't have the gnu.cpu.endian system property defined. I guess it would be up to SableVM to define it. Work around: sablevm -p gnu.cpu.endian=big -Y Test if you are on a big endian arch (ppc, sparc, etc.) and I guess: sablevm -p gnu.cpu.endian=little -Y Test if you are on little endian like x86 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You are the QA contact for the bug, or are watching the QA contact.