8079217: JRE installation is stuck at Progress dialog : redux
Reviewed-by: prr, ant
--- 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;