tag:blogger.com,1999:blog-4401785915643690479.post5361262949546000313..comments2009-06-10T12:23:57.677+01:00Comments on Zebra Corner: Resource Handling in Java: SummaryJoe Nuttallhttp://www.blogger.com/profile/02395295081337987607noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4401785915643690479.post-67043726192129405252009-06-10T12:23:17.867+01:002009-06-10T12:23:17.867+01:00There's not a problem exiting the block with a...There's not a problem exiting the block with a break/continue/return statement - you simply have to call closer.completed() before that. If you forget to do so then it will assert when that codepath executes.Joe Nuttallhttps://www.blogger.com/profile/02395295081337987607noreply@blogger.comtag:blogger.com,1999:blog-4401785915643690479.post-54427039363417858972009-04-09T18:20:00.000+01:002009-04-09T18:20:00.000+01:00Your closer approach is incorrect when the code us...Your closer approach is incorrect when the code using the resources contains a break, continue, or return statement that exits the block containing the use of the resource.Neal Gafterhttps://www.blogger.com/profile/08579466817032124881noreply@blogger.com