Regarding closing JDBC resources when exceptions happen... I like to have one close in the 'finally' block, but execute only when the reference isn't null. (Yes, that's evil -- but JDBC's SQLException is evil.)
What I'd like to do is to add any 'close()' SQLException to the exception that may have triggered the 'finally' block. But that's not easy. Not standard Java either: Java supports "caused by", but not collections of exceptions. :-[ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroups.com To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---