8079217: JRE installation is stuck at Progress dialog : redux
authorserb
Wed, 06 May 2015 17:31:48 +0300
changeset 30499 b98715e1e7e6
parent 30498 dc91dcb9dc3b
child 30500 9d40ba747a9a
8079217: JRE installation is stuck at Progress dialog : redux Reviewed-by: prr, ant
jdk/src/java.desktop/share/classes/sun/awt/AppContext.java
--- a/jdk/src/java.desktop/share/classes/sun/awt/AppContext.java	Tue May 05 13:29:31 2015 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/awt/AppContext.java	Wed May 06 17:31:48 2015 +0300
@@ -569,7 +569,7 @@
     static final class PostShutdownEventRunnable implements Runnable {
         private final AppContext appContext;
 
-        public PostShutdownEventRunnable(AppContext ac) {
+        PostShutdownEventRunnable(AppContext ac) {
             appContext = ac;
         }
 
@@ -585,7 +585,7 @@
         private final AppContext appContext;
         private final Runnable runnable;
 
-        public CreateThreadAction(AppContext ac, Runnable r) {
+        CreateThreadAction(AppContext ac, Runnable r) {
             appContext = ac;
             runnable = r;
         }
@@ -597,7 +597,7 @@
             } else {
                 t = new InnocuousThread(appContext.getThreadGroup(), runnable, "AppContext Disposer");
             }
-            t.setContextClassLoader(appContext.getContextClassLoader());
+            t.setContextClassLoader(null);
             t.setPriority(Thread.NORM_PRIORITY + 1);
             t.setDaemon(true);
             return t;