8303073: (bf) Temporarily reinstate private DirectByteBuffer(long, int) constructor

Reviewed-by: alanb, bpb
This commit is contained in:
Claes Redestad 2023-02-23 10:31:14 +00:00
parent 221f34634d
commit 1bab93b2d0

View File

@ -187,6 +187,11 @@ class Direct$Type$Buffer$RW$$BO$
att = null; att = null;
} }
// Temporarily keep the long,int constructor around
private Direct$Type$Buffer(long addr, int cap) {
this(addr, (long)cap);
}
// Throw an IllegalArgumentException if the capacity is not in // Throw an IllegalArgumentException if the capacity is not in
// the range [0, Integer.MAX_VALUE] // the range [0, Integer.MAX_VALUE]
// //
@ -270,7 +275,7 @@ class Direct$Type$Buffer$RW$$BO$
return new Direct$Type$Buffer$RW$$BO$(this, return new Direct$Type$Buffer$RW$$BO$(this,
-1, -1,
0, 0,
rem, rem,
rem, rem,
off, off,
#if[byte] #if[byte]