Illegal Seek when using File.newInputStream()
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Oct 2 21:37:31 UTC 2024
Hi Louis,
I have a functional patch implemented. It adds available() to FileChannelImpl which then uses it if the SeekableByteChannel is a FileChannelImpl. The patch only had the UNIX changes for now; I’ve not investigated Windows enough to know what to do there.
Does that sound reasonable?
Thanks,
Brian
On Oct 2, 2024, at 1:48 PM, Louis Bergelson <louisb at broadinstitute.org> wrote:
3. Modify the available method on ChannelInputStream to return 0 in this case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20241002/dafb6568/attachment.htm>
More information about the core-libs-dev
mailing list