Class files in ByteBuffer

Brian Goetz brian.goetz at oracle.com
Wed Mar 12 16:25:31 UTC 2025


That does seem like a more future-proof choice.  (I suspect too it would 
be less intrusive to adapt the internals to MS than BB.)

On 3/12/2025 11:53 AM, Maurizio Cimadamore wrote:
>
> On 10/03/2025 17:52, Brian Goetz wrote:
>> My first reaction is that the first seems fine in theory
>
> I wonder if an API accepting a MemorySegment would be more general -- 
> you can construct a MS from a BB and you can of course go from MS to 
> byte[] (which is what the impl needs). So I wonder if that would be 
> more future-proof. (We can, of course, also provide both).
>
> Maurizio
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20250312/df766993/attachment-0001.htm>


More information about the classfile-api-dev mailing list