--- a/corba/src/share/classes/com/sun/corba/se/spi/orb/ORB.java Wed Apr 02 20:15:59 2014 +0100
+++ b/corba/src/share/classes/com/sun/corba/se/spi/orb/ORB.java Wed Apr 02 21:45:26 2014 +0100
@@ -253,7 +253,9 @@
Method method = clazz.getMethod("getAppletContext");
appletContext = method.invoke(javaAwtAccess);
} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
- throw new InternalError(e);
+ InternalError err = new InternalError();
+ err.initCause(e);
+ throw err;
}
if (appletContext != null) {