GC closes my ServerSocket

Jim Gish jim.gish at oracle.com
Wed Jun 13 06:57:14 PDT 2012



On 06/13/2012 08:48 AM, Weijun Wang wrote:
> Automatic Resource Management ?

http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

try-with-resources

I learned about it when I submitted a test change using try finally (It 
was recommend that I use this instead :-) )

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20120613/fac6009c/attachment.html 


More information about the net-dev mailing list