8039114: Build failure: JDK-8039108 issue
authorcoffeys
Wed, 02 Apr 2014 21:45:26 +0100
changeset 23754 597ba0e933e2
parent 23753 27d1fe3a2bef
child 23755 70ee91a6c72c
child 23756 ce3ae619aa25
8039114: Build failure: JDK-8039108 issue Reviewed-by: alanb
corba/src/share/classes/com/sun/corba/se/spi/orb/ORB.java
--- 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) {