changeset 2504:498cfc2126f8

Added patch which fixes the AccessControlException while working with Color class in a PropertyEditor
author ptisnovs
date Thu, 31 Mar 2011 17:22:30 +0200
parents 2b50c801e31b
children 11db21f38d4b
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	Sat Mar 26 08:27:56 2011 +0100
+++ b/ChangeLog	Thu Mar 31 17:22:30 2011 +0200
@@ -1,3 +1,11 @@
+2011-03-31  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-03-26  Xerxes Ranby  <xerxes@zafena.se>
 
 	JamVM: Handle overflow in getPhysicalMemory().
--- a/Makefile.am	Sat Mar 26 08:27:56 2011 +0100
+++ b/Makefile.am	Thu Mar 31 17:22:30 2011 +0200
@@ -325,7 +325,8 @@
 	patches/pr600-arm-jvm.cfg.patch \
 	patches/jaxp-serial-version-uid.patch \
 	patches/openjdk/7023591-AAShapePipe.patch \
-	patches/openjdk/7027667-AAShapePipeRegTest.patch
+	patches/openjdk/7027667-AAShapePipeRegTest.patch \
+	patches/mark_sun_toolkit_privileged_code.patch
 
 if WITH_ALT_HSBUILD
 ICEDTEA_PATCHES += \
--- a/NEWS	Sat Mar 26 08:27:56 2011 +0100
+++ b/NEWS	Thu Mar 31 17:22:30 2011 +0200
@@ -14,6 +14,7 @@
 * HotSpot 20 updated to b11.
 * Backports
   - S7023591, S7027667: Clipped antialiased rectangles are filled, not drawn.
+  - Add missing privileged block around access to the sun.awt.nativedebug property.
 * CACAO
   - Ignore all unknown options, but report them.
   - Fixes build for newer gcc (at least 4.4) on PPC64, breaks older gcc.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/mark_sun_toolkit_privileged_code.patch	Thu Mar 31 17:22:30 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
+@@ -65,8 +65,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();
+         }
+     };