ByteBuffer cannot be extended because constructors have default visibility

Brian Burkhalter brian.burkhalter at oracle.com
Fri Apr 24 17:52:20 UTC 2020


> On Apr 24, 2020, at 10:46 AM, Florian Weimer <fw at deneb.enyo.de> wrote:
> 
> It's currently part of the ByteBuffer interface contract that the
> methods do not retain references to passed-in argument

FWIW, not true for wrap(byte[]).

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200424/2cc5294d/attachment.htm>


More information about the nio-dev mailing list