Bug 976 : setting apple.awt.graphics.UseQuartz when not using OS X causes permissions error with web start
Last modified: 2008-10-21 13:39




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
hansi
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-10-21 12:59
Processing 0149, Linux

In PApplet the line
System.setProperty("apple.awt.graphics.UseQuartz", "true");

throws the following exception:
java.security.AccessControlException: access denied
(java.util.PropertyPermission apple.awt.graphics.UseQuartz write)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at
java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.System.setProperty(System.java:727)
at processing.core.PApplet.main(PApplet.java:6326)
at metasurface.demo.basic.Main.main(Main.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1293)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1239)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1086)
at com.sun.javaws.Launcher.run(Launcher.java:105)
at java.lang.Thread.run(Thread.java:619)


The strange thing is that this online occurs in the webstart
securitymanager, not in the applet one.

This definitely does not occur on mac os, not tested in windows.
Additional Comment #1 From fry 2008-10-21 13:39
k, changed how it's handled for 0154.