You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@commons.apache.org by GitBox <gi...@apache.org> on 2025/09/28 08:21:50 UTC

[GH] (commons-io/feat/abstract-origin-closeable): Workflow run "Java CI" failed!

The GitHub Actions job "Java CI" on commons-io.git/feat/abstract-origin-closeable has failed.
Run started by GitHub user ppkarwasz (triggered by ppkarwasz).

Head commit for run:
33c70b3ceace3a1e42f1e8bf581254097d1e1ac9 / Piotr P. Karwasz <pk...@apache.org>
Add `Closeable` to `AbstractOrigin`

This change makes `AbstractOrigin` implement `Closeable` and updates the Javadoc of all “getter” methods that return `Closeable` resources. The Javadoc now explicitly warns that:

* Closing the returned resource will also close the underlying `AbstractOrigin`.
* Ownership of the underlying resource is transferred to the caller.

### Rationale

* Callers must always close the returned resource. Some implementations create a new resource on each call, which must be released explicitly.
* Other implementations return the underlying origin directly, making it impossible to guarantee a close-shielded wrapper.
* The primary usage of `AbstractOrigin` is within `AbstractStreamBuilder`, whose implementations typically wrap closeable resources.

Report URL: https://github.com/apache/commons-io/actions/runs/18071593011

With regards,
GitHub Actions via GitBox