| Article: |
Five Things I Love About Spring | |
| Subject: | Bug in "The Old Way" Code | |
| Date: | 2005-11-13 08:29:41 | |
| From: | DavidPeterson | |
Your code:
This will throw a NullPointerException in the finally block if the session factory throws an exception when opening a session, i.e. it will conceal the true exception.
Is this how Spring does it too? |
||
Women in Technology
Hear us Roar
