Reviewer needed - patch which fixes class SunToolkit
Pavel Tisnovsky
ptisnovs at redhat.com
Tue Mar 15 05:51:56 PDT 2011
Dr Andrew John Hughes wrote:
> On 15:55 Fri 11 Mar , Pavel Tisnovsky wrote:
>> Hi all,
>>
>> I'd like to add new patch to IcedTea6 HEAD. This patch fixes the
>> exception which is thrown when Color class (java.awt.Color) is about to
>> be opened in PropertyEditor. This change is based on OpenJDK7 sources,
>> but I'm unable to determine in which push this changes was made.
>>
>> hg diff generated from recent IcedTea6 HEAD is stored in attachment.
>>
>> Here is ChangeLog entry:
>>
>> 2011-03-11 Pavel Tisnovsky <ptisnovs at redhat.com>
>>
>> * Makefile.am: Add new patch.
>> * patches/sun-toolkit.patch:
>> Patch which fix the AccessControlException while
>> working with Color class in PropertyEditor
>>
>> Can anybody please review this change?
>>
>
> Do you have a test case for this?
Yes, this issue is tested (probably incidentally :-) by a regression
test java/beans/PropertyEditor/TestColorClass.java
>
> Have you looked at upstreaming it?
I sent mail to jdk6-dev mail list last week and ask for bug ID.
>
> The patch filename is really unhelpful as to what this actually is.
Any suggestions please? It would be nice to have original bug ID in the
name, of course.
>
> It needs to be mentioned in NEWS.
I'd like to do so but don't know yet the bug ID. Will have to look to
Oracle bug database again...
>
>> Cheers
>> Pavel
>
>> diff -r 4cbe17b91cc8 Makefile.am
>> --- a/Makefile.am Wed Mar 09 10:50:40 2011 +0100
>> +++ b/Makefile.am Fri Mar 11 15:48:05 2011 +0100
>> @@ -326,7 +326,8 @@
>> patches/openjdk/6934977-MappedByteBuffer.load.patch \
>> patches/jaxp-serial-version-uid.patch \
>> patches/jtreg-hotspot-bug-6196102.patch \
>> - patches/jtreg-double-to-string.patch
>> + patches/jtreg-double-to-string.patch \
>> + patches/sun-toolkit.patch
>>
>> if WITH_ALT_HSBUILD
>> ICEDTEA_PATCHES += \
>> diff -r 4cbe17b91cc8 patches/sun-toolkit.patch
>> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
>> +++ b/patches/sun-toolkit.patch Fri Mar 11 15:48:05 2011 +0100
>> @@ -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();
>> + }
>> + };
>
>
More information about the distro-pkg-dev
mailing list