You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yoko-commits@incubator.apache.org by ri...@apache.org on 2007/02/21 21:15:15 UTC
svn commit: r510223 - in
/incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi: CORBA/Stub.java
CORBA/Util.java PortableRemoteObject.java
Author: rickmcguire
Date: Wed Feb 21 13:15:14 2007
New Revision: 510223
URL: http://svn.apache.org/viewvc?view=rev&rev=510223
Log:
YOKO-296 RMI delegate loading failures should include the root cause in the exception.
Modified:
incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Stub.java
incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Util.java
incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/PortableRemoteObject.java
Modified: incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Stub.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Stub.java?view=diff&rev=510223&r1=510222&r2=510223
==============================================================================
--- incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Stub.java (original)
+++ incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Stub.java Wed Feb 21 13:15:14 2007
@@ -42,7 +42,9 @@
try {
delegateClass = Util.loadClass(delegateName, null, null);
} catch (Exception e) {
- throw new org.omg.CORBA.INITIALIZE("Can not create Stub delegate: " + delegateName);
+ org.omg.CORBA.INITIALIZE ex = new org.omg.CORBA.INITIALIZE("Can not create Stub delegate: " + delegateName);
+ ex.initCause(e);
+ throw ex;
}
}
Modified: incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Util.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Util.java?view=diff&rev=510223&r1=510222&r2=510223
==============================================================================
--- incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Util.java (original)
+++ incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/CORBA/Util.java Wed Feb 21 13:15:14 2007
@@ -45,7 +45,9 @@
// this.
delegate = (UtilDelegate)Util.loadClass(delegateName, null, null).newInstance();
} catch (Exception e) {
- throw new org.omg.CORBA.INITIALIZE("Can not create Util delegate: "+delegateName);
+ org.omg.CORBA.INITIALIZE ex = new org.omg.CORBA.INITIALIZE("Can not create Util delegate: "+delegateName);
+ ex.initCause(e);
+ throw ex;
}
}
Modified: incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/PortableRemoteObject.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/PortableRemoteObject.java?view=diff&rev=510223&r1=510222&r2=510223
==============================================================================
--- incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/PortableRemoteObject.java (original)
+++ incubator/yoko/trunk/rmi-spec/src/main/java/javax/rmi/PortableRemoteObject.java Wed Feb 21 13:15:14 2007
@@ -36,7 +36,9 @@
try {
delegate = (PortableRemoteObjectDelegate)Util.loadClass(delegateName, null, null).newInstance();
} catch (Exception e) {
- throw new org.omg.CORBA.INITIALIZE("Can not create PortableRemoteObject delegate: "+delegateName);
+ org.omg.CORBA.INITIALIZE ex = new org.omg.CORBA.INITIALIZE("Can not create PortableRemoteObject delegate: "+delegateName);
+ ex.initCause(e);
+ throw ex;
}
}