On Wed, 8 Nov 2023 13:31:32 GMT, Konrad Windszus <d...@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

Reply via email to