changeset 7887:08fef750e7dd

RT-38431: Use consistent ACC in callback Reviewed-by: anthony, msladecek
author kcr
date Wed, 27 Aug 2014 08:40:45 -0700
parents eedae2717d3c
children 9ae7393e72e9
files modules/graphics/src/main/java/com/sun/javafx/tk/quantum/GlassWindowEventHandler.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/GlassWindowEventHandler.java	Wed Aug 27 11:38:50 2014 -0400
+++ b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/GlassWindowEventHandler.java	Wed Aug 27 08:40:45 2014 -0700
@@ -121,7 +121,11 @@
 
     @Override
     public void handleLevelEvent(int level) {
-        stage.stageListener.changedAlwaysOnTop(level != Level.NORMAL);
+        AccessControlContext acc = stage.getAccessControlContext();
+        AccessController.doPrivileged((PrivilegedAction<Void>)() -> {
+            stage.stageListener.changedAlwaysOnTop(level != Level.NORMAL);
+            return (Void)null;
+        } , acc);
     }
     
     @Override