ByteBuffer cannot be extended because constructors have default visibility

Florian Weimer fw at deneb.enyo.de
Fri Apr 24 17:59:23 UTC 2020


* Brian Burkhalter:

>> 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[]).

Indeed.  Sorry, I meant instance methods. 8-)


More information about the nio-dev mailing list