RFR: 8352536: Add overloads to parse and build class files from/to ByteBuffer and MemorySegment [v2]

David M. Lloyd duke at openjdk.org
Fri Mar 21 16:26:06 UTC 2025


> Provide method overloads to the ClassFile interface of the java.lang.classfile API which allow parsing of classes found in byte buffers and memory segments, as well as allowing built class files to be output to these types.

David M. Lloyd has updated the pull request incrementally with one additional commit since the last revision:

  Review feedback: drop ByteBuffer variants, and use SegmentAllocator

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/24139/files
  - new: https://git.openjdk.org/jdk/pull/24139/files/1e2356cf..871dc55f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24139&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24139&range=00-01

  Stats: 325 lines in 5 files changed: 4 ins; 308 del; 13 mod
  Patch: https://git.openjdk.org/jdk/pull/24139.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24139/head:pull/24139

PR: https://git.openjdk.org/jdk/pull/24139


More information about the core-libs-dev mailing list