8283417: Update java.nio buffers to use sealed classes

Reviewed-by: rriggs, darcy, iris, alanb
This commit is contained in:
Brian Burkhalter 2022-03-24 16:11:57 +00:00
parent 19f01ab701
commit b36cf35ad9
7 changed files with 45 additions and 8 deletions

View file

@ -40,8 +40,16 @@ import jdk.internal.access.foreign.MemorySegmentProxy;
* instance of this class rather than of the superclass.
#end[rw]
*/
#if[rw]
sealed
#else[rw]
final
#end[rw]
class Heap$Type$Buffer$RW$
extends {#if[ro]?Heap}$Type$Buffer
#if[rw]
permits Heap$Type$BufferR
#end[rw]
{
#if[rw]
// Cached array base offset