8079459: JCK test api/java_nio/ByteBuffer/index.html#GetPutXXX start failing after JDK-8026049
Summary: nextPutIndex used where nextGetIndex is correct.
Reviewed-by: alanb
--- a/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template Fri Oct 30 12:03:09 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template Mon May 11 15:09:22 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);
}