Reviewer needed - patch which fixes class SunToolkit

Dr Andrew John Hughes ahughes at redhat.com
Tue Mar 15 15:16:49 PDT 2011


On 13:51 Tue 15 Mar     , Pavel Tisnovsky wrote:
> 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
> 

And this is already in OpenJDK6?  What issue does it find?

> > 
> > Have you looked at upstreaming it?
> 
> I sent mail to jdk6-dev mail list last week and ask for bug ID.
> 

Seen, thanks.

> > 
> > 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.
> 

I'd be able to give some suggestions if I knew the problem :-)

> > 
> > 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...
> 

It can be mentioned without a bug ID and then updated.

> > 
> >> 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();
> >> +         }
> >> +     };
> > 
> > 
> 

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: F5862A37 (https://keys.indymedia.org/)
Fingerprint = EA30 D855 D50F 90CD F54D  0698 0713 C3ED F586 2A37



More information about the distro-pkg-dev mailing list