You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2004/12/26 21:57:30 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/core PersistenceBrokerImpl.java
brj 2004/12/26 12:57:30
Modified: src/java/org/apache/ojb/broker/core
PersistenceBrokerImpl.java
Log:
do not drop the exceptions
Revision Changes Path
1.107 +10 -3 db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
Index: PersistenceBrokerImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- PersistenceBrokerImpl.java 18 Dec 2004 13:39:25 -0000 1.106
+++ PersistenceBrokerImpl.java 26 Dec 2004 20:57:30 -0000 1.107
@@ -33,6 +33,7 @@
import org.apache.ojb.broker.IdentityFactory;
import org.apache.ojb.broker.ManageableCollection;
import org.apache.ojb.broker.MtoNImplementor;
+import org.apache.ojb.broker.OJBRuntimeException;
import org.apache.ojb.broker.PBKey;
import org.apache.ojb.broker.PBState;
import org.apache.ojb.broker.PersistenceBrokerException;
@@ -2127,8 +2128,14 @@
{
return (ManageableCollection)collectionClass.newInstance();
}
- catch (Exception ex)
- {}
+ catch (InstantiationException e)
+ {
+ throw new OJBRuntimeException("Can't create instance", e);
+ }
+ catch (IllegalAccessException e)
+ {
+ throw new OJBRuntimeException("Class not accessible", e);
+ }
}
return (ManageableCollection)subContainer.getInstance(collectionClass);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org