8079459: JCK test api/java_nio/ByteBuffer/index.html#GetPutXXX start failing after JDK-8026049
authoraph
Mon, 11 May 2015 15:09:22 +0100
changeset 33662 747a61ad0977
parent 33497 3fadd7701c2f
child 33663 2cd62a4bd471
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
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	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);
     }