diff -r ad7c7378a002 -r 0599d4cde183 jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template --- a/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template Thu Nov 05 20:00:53 2015 +0100 +++ b/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template Fri Nov 06 11:34:03 2015 +0100 @@ -477,7 +477,7 @@ #if[rw] public float getFloat() { - int x = unsafe.getIntUnaligned(hb, byteOffset(nextPutIndex(4)), bigEndian); + int x = unsafe.getIntUnaligned(hb, byteOffset(nextGetIndex(4)), bigEndian); return Float.intBitsToFloat(x); }