From 49421eac80d812e52ec1eb40e88a38f10707610f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 9 Oct 2014 06:29:32 +0200 Subject: FontFactory: Fix SecurityException as regression of commit bd24599b21f9787ac989e65b44dc1ba762162f22 - add missing PrivilegedAction around tempFile[0].delete() --- src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/com/jogamp') diff --git a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java index ba355f4e6..be16e030f 100644 --- a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java +++ b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java @@ -179,7 +179,12 @@ public class FontFactory { bis.close(); } if( null != tempFile[0] ) { - tempFile[0].delete(); + AccessController.doPrivileged(new PrivilegedAction() { + @Override + public Object run() { + tempFile[0].delete(); + return null; + } } ); } } } -- cgit v1.2.3