Class files in ByteBuffer

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Mar 12 15:53:45 UTC 2025


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



More information about the classfile-api-dev mailing list