8079459: JCK test api/java_nio/ByteBuffer/index.html#GetPutXXX start failing after JDK-8026049

NextPutIndex used where nextGetIndex is correct.

Reviewed-by: alanb
This commit is contained in:
Andrew Haley 2015-05-11 15:09:22 +01:00
parent ed550bb440
commit b7dca6971d

View File

@ -477,7 +477,7 @@ class Heap$Type$Buffer$RW$
#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);
}