Wrong byte order on little endian platforms without unaligned memory access

I found a byte order problem when using direct buffers on a platform that supports Unsafe but not unaligned memory access. The existing fallback implementation in PlatformDependent0.java only works on big endian platforms and does not work in my test system (Raspberry Pi, Raspbian, JDK 8 Preview).