OPENJPA-1764 protect against java.lang.NoClassDefFoundError when being used in an app server but as app managed and the JVM exits quickly from under us

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-11-02 19:16:21 +00:00
parent aa9573698b
commit 3b3063899b
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ extends SimpleDriverDataSource implements Configurable, Closeable {
((org.apache.commons.dbcp.BasicDataSource)_dbcpClass.cast(_ds)).close();
}
}
} catch (ClassCastException cce) {
} catch (Exception e) {
// no-op
} catch (Throwable t) {
// no-op
} finally {
_ds = null;