changeset 14539:96bbcecb65eb

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
author aph
date Mon, 11 May 2015 15:09:22 +0100
parents 780bec42fe40
children 4f6e52f9dc79
files src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template	Fri Oct 30 12:03:09 2015 -0700
+++ b/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);
     }