GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Leaky stream handling in test utilities (TestFileUtils, TestFileProcessor) · Issue #1998 · apache/maven-resolver

Leaky stream handling in test utilities (TestFileUtils, TestFileProcessor) #1998

New issue
Copy link
New issue
Copy link
Closed
#2056
Closed
Leaky stream handling in test utilities (TestFileUtils, TestFileProcessor)#1998
#2056
Copy link
Labels
bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

Description

@elharo
elharo
opened on Jul 21, 2026
Issue body actions

Affected version: HEAD

Files:

  • maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java:172-325
  • maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileProcessor.java:63-151

Methods manually close streams in try-catch-finally blocks instead of using try-with-resources. If an explicit close() call throws before the finally block, open resources are leaked. Functionally correct in happy-path but fragile.

Originally reported in #1944.

Activity

  1. elharo
    added
    bugSomething isn't working
    priority:minorMinor loss of function, or other problem where easy workaround is present
    on Jul 21, 2026
  2. elharo
    changed the title [-]Pre-Java-7 stream handling in test utilities (TestFileUtils, TestFileProcessor)[/-] [+]Leaky stream handling in test utilities (TestFileUtils, TestFileProcessor)[/+] on Jul 21, 2026
  3. elharo
    closed this as completedin #2056on Aug 9, 2026
  4. cstamas
    added a commit that references this issue on Aug 19, 2026

    Fix apache#1998: use try-with-resources in test file utilities (apach…

    This issue will close once commit df3b5d2 is merged into the 'master' branch.
    df3b5d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.