Suppressed exceptions with catch and rethrow

Jason Mehrens jason_mehrens at hotmail.com
Tue Dec 7 09:46:20 PST 2010


Hello coin-dev,
 
As a best practice, can/should the suppressed exceptions be used when cleaning up resources in a catch and rethrow?  Using the FileChannelImpl changes at http://hg.openjdk.java.net/jdk7/jdk7/jdk/rev/c164d0d59465 as an example.  Should 'ignore' be added as a suppressed exception to 'e'?
 
Thanks,
 
Jason 		 	   		  


More information about the coin-dev mailing list