changeset 2336:2f549e3a4720

Added patch that fixes AccessControlContext which was thrown while working with Color class in a PropertyEditor
author ptisnovs
date Fri, 15 Apr 2011 15:51:17 +0200
parents 495cac553ab0
children 8d393fbff5d3
files ChangeLog Makefile.am NEWS patches/mark_sun_toolkit_privileged_code.patch
diffstat 4 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 12 15:47:27 2011 +0200
+++ b/ChangeLog	Fri Apr 15 15:51:17 2011 +0200
@@ -1,3 +1,11 @@
+2011-04-15  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* Makefile.am: Add new patch.
+	* NEWS: Updated (added info about new fix).
+	* patches/mark_sun_toolkit_privileged_code.patch:
+	Patch which fixes the AccessControlException while
+	working with Color class in a PropertyEditor
+
 2011-04-12  Xerxes RĂ„nby  <xerxes@zafena.se>
 
 	PR689: Shark fails to find LLVM 2.9 System headers during build
--- a/Makefile.am	Tue Apr 12 15:47:27 2011 +0200
+++ b/Makefile.am	Fri Apr 15 15:51:17 2011 +0200
@@ -341,7 +341,8 @@
 	patches/openjdk/6675802-securityExceptions-applets.patch \
 	patches/openjdk/6691503-malicious-applet-always-on-top.patch \
 	patches/jtreg-LastErrorString.patch \
-	patches/shark-llvm-2.9.patch
+	patches/shark-llvm-2.9.patch \
+	patches/mark_sun_toolkit_privileged_code.patch
 
 if WITH_ALT_HSBUILD
 ICEDTEA_PATCHES += \
--- a/NEWS	Tue Apr 12 15:47:27 2011 +0200
+++ b/NEWS	Fri Apr 15 15:51:17 2011 +0200
@@ -14,6 +14,7 @@
   - S6675802: Regression: heavyweight popups cause SecurityExceptions in applets
   - S6691503: Malicious applet can show always-on-top popup menu which has whole screen size 
   - S6980392, PR642: simple correction in testcase, added missing bracket
+  - Fixed AccessControlContext which was thrown while working with Color class in a PropertyEditor
 * Plugin
   - PR542: Plugin fails with NPE on http://www.openprocessing.org/visuals/iframe.php?visualID=2615
 * Shark
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/mark_sun_toolkit_privileged_code.patch	Fri Apr 15 15:51:17 2011 +0200
@@ -0,0 +1,12 @@
+--- openjdk/jdk/src/share/classes/sun/awt/SunToolkit.orig.java	2011-03-11 10:48:29.000000000 +0100
++++ openjdk/jdk/src/share/classes/sun/awt/SunToolkit.java	2011-03-11 11:24:33.000000000 +0100
+@@ -70,8 +70,7 @@
+
+     /* Load debug settings for native code */
+     static {
+-        String nativeDebug = System.getProperty("sun.awt.nativedebug");
+-        if ("true".equalsIgnoreCase(nativeDebug)) {
++        if (AccessController.doPrivileged(new GetBooleanAction("sun.awt.nativedebug"))) {
+             DebugSettings.init();
+         }
+     };