changeset 11810:51b4175e8035

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 be4d1f1a6d53
children b9520cfccb84
files src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java	Wed Apr 22 15:00:50 2015 +0400
+++ b/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) {