changeset 30477:5b7c6378ce56

8078115: Applets now require "modifyThread" permission to exit on windows Reviewed-by: azvegint, alexsch
author serb
date Wed, 22 Apr 2015 20:41:37 +0100
parents dd563be4f10f
children eaa3acedbdde
files jdk/src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java	Wed Apr 22 15:00:50 2015 +0400
+++ b/jdk/src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java	Wed Apr 22 20:41:37 2015 +0100
@@ -303,9 +303,10 @@
     public void run() {
         AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
             Thread.currentThread().setContextClassLoader(null);
+            Thread.currentThread().setPriority(Thread.NORM_PRIORITY + 1);
             return null;
         });
-        Thread.currentThread().setPriority(Thread.NORM_PRIORITY + 1);
+
         boolean startPump = init();
 
         if (startPump) {