8162458: Buffer view implementations use incorrect offset for Unsafe access

Reviewed-by: alanb
This commit is contained in:
Paul Sandoz 2016-07-29 10:18:47 +02:00
parent 9be5fdfe94
commit 8dc58ab506
4 changed files with 781 additions and 35 deletions

View file

@ -88,13 +88,13 @@ class XXX {
0,
size,
size,
off))
address + off))
: ($Type$Buffer)(new ByteBufferAs$Type$Buffer$RW$L(this,
-1,
0,
size,
size,
off)));
address + off)));
} else {
return (nativeByteOrder
? ($Type$Buffer)(new Direct$Type$Buffer$RW$U(this,