RFR: 8308753: Class-File API transition to Preview [v24]
Chen Liang
liach at openjdk.org
Wed Nov 8 14:10:15 UTC 2023
On Wed, 8 Nov 2023 13:31:32 GMT, Konrad Windszus <duke at openjdk.org> wrote:
> I would appreciate a hint in the javadocs why `Classfile.of` requires a byte array and cannot deal with inputstreams (iiuc this is due to the lazy reading which requires adjusting the offset back and forth potentially)
You can simply call `ClassFile.of().parse(inputStream.readAllBytes())` instead.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15706#issuecomment-1801960923
More information about the build-dev
mailing list