changeset 578:7c70b7ef7ab9

8039114: Build failure: JDK-8039108 issue Reviewed-by: alanb
author coffeys
date Wed, 02 Apr 2014 21:45:26 +0100
parents 9ad9346fea43
children 6f5c9ccad0bf dd71ed699a42
files src/share/classes/com/sun/corba/se/spi/orb/ORB.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/corba/se/spi/orb/ORB.java	Wed Apr 02 20:15:59 2014 +0100
+++ b/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) {