# HG changeset patch # User coffeys # Date 1396471526 -3600 # Node ID 597ba0e933e20888684762567d6df7d148f7437a # Parent 27d1fe3a2befb17493563ff59e48f5f2c3ff79cf 8039114: Build failure: JDK-8039108 issue Reviewed-by: alanb diff -r 27d1fe3a2bef -r 597ba0e933e2 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) {