You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "efegokdemir (via GitHub)" <gi...@apache.org> on 2026/09/23 15:12:05 UTC

[PR] Preserve caller-owned property input streams [maven-shared-utils]

efegokdemir opened a new pull request, #440:
URL: https://github.com/apache/maven-shared-utils/pull/440

   ## Summary
   
   Fixes #274 by making the InputStream overloads of PropertyUtils leave caller-owned streams open.
   
   ## Changes
   
   - Stop wrapping supplied streams in try-with-resources in `loadProperties(InputStream)` and `loadOptionalProperties(InputStream)`.
   - Update the API documentation to state that callers retain close responsibility.
   - Add regression coverage for both overloads using tracking streams.
   
   ## Testing
   
   - `JAVA_HOME=/opt/homebrew/opt/openjdk@21 mvn -Dtest=PropertyUtilsTest test` — PASS (14 tests).
   - `JAVA_HOME=/opt/homebrew/opt/openjdk@21 mvn -Prun-its verify` — PASS (804 tests, 19 skipped; this project does not define the `run-its` profile, so Maven reported it as not activated).
   - `git diff --check` — PASS.
   
   ## Notes
   
   The URL and File overloads continue to close streams they create themselves. AI assistance was used during implementation; the complete diff and test results were reviewed before submission. No overlapping open PR was found during the final duplicate check.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Preserve caller-owned property input streams [maven-shared-utils]

Posted by "efegokdemir (via GitHub)" <gi...@apache.org>.
efegokdemir commented on PR #440:
URL: https://github.com/apache/maven-shared-utils/pull/440#issuecomment-5797442462

   Closing this PR after reviewing the issue guidance: the stream-closing behavior is intentionally retained for the 3.x line, and this change belongs in a future major version. No further action is requested from maintainers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Preserve caller-owned property input streams [maven-shared-utils]

Posted by "efegokdemir (via GitHub)" <gi...@apache.org>.
efegokdemir closed pull request #440: Preserve caller-owned property input streams
URL: https://github.com/apache/maven-shared-utils/pull/440


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org