The GitHub Actions job "Java CI" on commons-io.git/fix/io-utils-eof has succeeded. Run started by GitHub user ppkarwasz (triggered by ppkarwasz).
Head commit for run: 792947fc0552a984da52e2c6f42d61311361a6c8 / Piotr P. Karwasz <[email protected]> Fix inconsistent exception in `IOUtils.toByteArray` The implementation of `IOUtils.toByteArray(InputStream, int, int)` added in #776 throws different exceptions depending on the requested size: * For request sizes larger than the internal chunk size, it correctly throws an `EOFException`. * For smaller requests, it incorrectly throws a generic `IOException`. This PR makes the behavior consistent by always throwing an `EOFException` when the stream ends prematurely. Note: This also affects `RandomAccessFiles.read`. Its previous truncation behavior was undocumented and inconsistent with `RandomAccessFile.read` (which reads as much as possible). The new behavior is not explicitly documented here either, since it is unclear whether throwing on truncation is actually desirable. Report URL: https://github.com/apache/commons-io/actions/runs/18230938832 With regards, GitHub Actions via GitBox
