You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by ti...@apache.org on 2023/03/09 19:43:40 UTC
[db-jdo] branch JDO-823-avoid-catching-throwable created (now 03e23cf9)
This is an automated email from the ASF dual-hosted git repository.
tilmannz pushed a change to branch JDO-823-avoid-catching-throwable
in repository https://gitbox.apache.org/repos/asf/db-jdo.git
at 03e23cf9 Update JDOHelper.java
This branch includes the following new commits:
new 03e23cf9 Update JDOHelper.java
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[db-jdo] 01/01: Update JDOHelper.java
Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tilmannz pushed a commit to branch JDO-823-avoid-catching-throwable
in repository https://gitbox.apache.org/repos/asf/db-jdo.git
commit 03e23cf92445ecd02004980d3dcf1fef5d75c958
Author: Tilmann <zo...@gmx.de>
AuthorDate: Thu Mar 9 20:43:31 2023 +0100
Update JDOHelper.java
---
api/src/main/java/javax/jdo/JDOHelper.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/api/src/main/java/javax/jdo/JDOHelper.java b/api/src/main/java/javax/jdo/JDOHelper.java
index 52926f61..7460e5d7 100644
--- a/api/src/main/java/javax/jdo/JDOHelper.java
+++ b/api/src/main/java/javax/jdo/JDOHelper.java
@@ -737,7 +737,7 @@ public class JDOHelper implements Constants {
Enumeration<URL> urls = null;
try {
urls = getResources(pmfClassLoader, Constants.SERVICE_LOOKUP_PMF_RESOURCE_NAME);
- } catch (Throwable ex) {
+ } catch (Exception ex) {
exceptions.add(ex);
}
@@ -751,7 +751,7 @@ public class JDOHelper implements Constants {
return invokeGetPersistenceManagerFactoryOnImplementation(
pmfClassName, overrides, props, pmfClassLoader);
- } catch (Throwable ex) {
+ } catch (Exception ex) {
// remember exceptions from failed pmf invocations
exceptions.add(ex);