Request for approval for CR 6961123 - setWMClass fails to null-terminate WM_CLASS string

Andrew Hughes gnu.andrew at redhat.com
Thu Feb 11 22:11:52 UTC 2016



----- Original Message -----
> Hi,
> 
> I ran into GNOME shell displaying what looked like a non-null-terminated
> string as the name of the Java program. It turned out to be an old bug
> with a one-liner fix.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-6961123
> Webrev:
> http://cr.openjdk.java.net/~omajid/webrevs/6961123-missing-null-wmclass-jdk8u/00/
> 
> The ICCCM [1] states:
> 
>     The WM_CLASS property (of type STRING without control characters)
>     contains two consecutive null-terminated strings.
>     ...
>     Note that WM_CLASS strings are null-terminated and, thus, differ
>     from the general conventions that STRING properties are
>     null-separated.
> 
> But AWT doesn't do that. It uses two null-separated strings for
> WM_CLASS. The webrev fixes that.
> 
> The fix is identical to that in jdk9 (except for paths) and jdk8. The
> jdk9 patch review thread:
> http://mail.openjdk.java.net/pipermail/awt-dev/2015-December/010496.html
> 
> Thanks,
> Omair
> 
> [1] https://tronche.com/gui/x/icccm/sec-4.html
> 
> --
> PGP Key: 66484681 (http://pgp.mit.edu/)
> Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681
> 

Fine, as we discussed before. Please push.
-- 
Andrew :)

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

PGP Key: ed25519/35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596 4222




More information about the jdk7u-dev mailing list