maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ChristianSchulte <>
Subject [GitHub] maven-surefire pull request #144: Resource leaks.
Date Sun, 26 Feb 2017 16:59:33 GMT
Github user ChristianSchulte commented on a diff in the pull request:
    --- Diff: maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/
    @@ -69,8 +69,8 @@ public void close()
    -                fileOutputStream.flush();
    -                fileOutputStream.close();
    +                // fileOutputStream.flush(); Will not call close on exception!
    +                fileOutputStream.close(); // Will implicitly flush.
    --- End diff --
    I just wanted to be sure that `close` is always called. See the comment. When `flush`
throws an exception, `close` will never be called and leak resources.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message