mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8303073: (bf) Temporarily reinstate private DirectByteBuffer(long, int) constructor
Reviewed-by: alanb, bpb
This commit is contained in:
parent
221f34634d
commit
1bab93b2d0
1 changed files with 6 additions and 1 deletions
|
@ -187,6 +187,11 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
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
|
||||
// the range [0, Integer.MAX_VALUE]
|
||||
//
|
||||
|
@ -270,7 +275,7 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
return new Direct$Type$Buffer$RW$$BO$(this,
|
||||
-1,
|
||||
0,
|
||||
rem,
|
||||
rem,
|
||||
rem,
|
||||
off,
|
||||
#if[byte]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue