Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-13 Thread Andrew Hughes
- Original Message - > On 07/11/2012 20:51, Andrew Hughes wrote: > > : > > > > As you can see on the IcedTea bug, I've asked the same question. > > I'd have preferred it to use try-with-resources myself (easier to > > follow for one thing), but given the patch is as it is, I'm now > > wary

Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-13 Thread Andrew Hughes
- Original Message - > On 8/11/2012 7:17 AM, Andrew Hughes wrote: > > - Original Message - > >> The bug number is 8003120 > >> > > > > Thanks. Pushed to tl: > > http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f51943263267 > > I did not construe Lance's mail to indicate an approval to p

Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-07 Thread Alan Bateman
On 07/11/2012 20:51, Andrew Hughes wrote: : As you can see on the IcedTea bug, I've asked the same question. I'd have preferred it to use try-with-resources myself (easier to follow for one thing), but given the patch is as it is, I'm now wary about changing it and negating the existing testing

Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-07 Thread David Holmes
On 8/11/2012 7:17 AM, Andrew Hughes wrote: - Original Message - The bug number is 8003120 Thanks. Pushed to tl: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f51943263267 I did not construe Lance's mail to indicate an approval to push. The turnaround on this was just a bit too quick

Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-07 Thread Andrew Hughes
- Original Message - > The bug number is 8003120 > Thanks. Pushed to tl: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f51943263267 > Best > Lance > On Nov 7, 2012, at 3:30 PM, Andrew Hughes wrote: > > > IcedTea bug: > > http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1197 > > > >

Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-07 Thread Andrew Hughes
- Original Message - > Is there a reason the patch was not created originally leveraging > try-with-resources as it seems like the perfect candidate from the > webrev? > > I can create a bug for it, but I think I would prefer to see the > patch take advantage of try-with-resoruces > As y

Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-07 Thread Lance Andersen - Oracle
The bug number is 8003120 Best Lance On Nov 7, 2012, at 3:30 PM, Andrew Hughes wrote: > IcedTea bug: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1197 > > com.sun.naming.internal.ResourceManager.getApplicationResources() does not > close the input streams it gets from helper.getResourc

Re: [PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-07 Thread Lance Andersen - Oracle
Is there a reason the patch was not created originally leveraging try-with-resoruces as it seems like the perfect candidate from the webrev? I can create a bug for it, but I think I would prefer to see the patch take advantage of try-with-resoruces Best Lance On Nov 7, 2012, at 3:30 PM, Andrew

[PATCH FOR REVIEW] ResourceManager.getApplicationResources() does not close InputStreams

2012-11-07 Thread Andrew Hughes
IcedTea bug: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1197 com.sun.naming.internal.ResourceManager.getApplicationResources() does not close the input streams it gets from helper.getResources() and helper.getJavaHomeLibStream(). This patch: http://cr.openjdk.java.net/~andrew/pr1197