# HG changeset patch # User aph # Date 1431353362 -3600 # Node ID 747a61ad097749a910a19f920e2ec562ab42fc50 # Parent 3fadd7701c2fd33c0523d9990a53b0a6c36f67e1 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 diff -r 3fadd7701c2f -r 747a61ad0977 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); }