[Bug 1197] ResourceManager.getApplicationResources() does not close InputStreams

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Sun Oct 21 22:03:35 PDT 2012


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1197

--- Comment #1 from James Livingston <jlivings at redhat.com> ---
Created attachment 776
  --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=776&action=edit
patch

This is a patch against the JDK7u tree. It passes running "make test", and does
not show any problems when running an EE server (JBoss) against the newly build
JDK.


If an exception is thrown while processing one of the streams returned from
helper.getResources(), then the remaining streams are retrieved so they can be
closed, which they weren't before. With the actual implementation of the helper
that is not needed because they are opened lazily, but that's an implementation
detail of the helper and should not cause any issues because it only has an
effect in the unlikely case of an exception being thrown.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121022/e096f268/attachment.html 


More information about the distro-pkg-dev mailing list