dain 2004/04/11 01:55:25
Modified: modules/core/src/java/org/openejb/proxy
EJBMethodInterceptor.java
Log:
Added cmp-field support
Revision Changes Path
1.6 +1 -1
openejb/modules/core/src/java/org/openejb/proxy/EJBMethodInterceptor.java
Index: EJBMethodInterceptor.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/proxy/EJBMethodInterceptor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- EJBMethodInterceptor.java 10 Apr 2004 06:51:38 -0000 1.5
+++ EJBMethodInterceptor.java 11 Apr 2004 05:55:25 -0000 1.6
@@ -118,7 +118,7 @@
// system exceptions must be throw as either EJBException or a
RemoteException
if (interfaceType.isLocal()) {
if (!(t instanceof EJBException)) {
- t = new EJBException((Exception) t);
+ t = new EJBException().initCause(t);
}
} else {
if (!(t instanceof RemoteException)) {