RFR: 8341666: FileInputStream doesn't support readAllBytes() or readNBytes(int) on pseudo devices

Brian Burkhalter bpb at openjdk.org
Wed Oct 23 22:58:28 UTC 2024


Modify `FileInputStream` (FIS) to fall back to the superclass implementations of `readAllBytes()`, `readNBytes(int)`, `skip()`, and `transferTo` when the input source would otherwise fail with "Illegal Seek" in the FIS implementation, such as for the standard input or a named pipe.

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

Commit messages:
 - 8341666: FileInputStream doesn't support readAllBytes() or readNBytes(int) on pseudo devices

Changes: https://git.openjdk.org/jdk/pull/21673/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21673&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341666
  Stats: 262 lines in 7 files changed: 257 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/21673.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21673/head:pull/21673

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


More information about the core-libs-dev mailing list