6486887: (prefs) Preferences sync fails if jaxp transform provider doesn't support indent-number
bha@worldnet.att.net
bha at att.net
Sun Feb 17 20:06:47 PST 2008
-------------- Original message ----------------------
From: "Joseph D. Darcy" <Joe.Darcy at Sun.COM>
>
> bha at worldnet.att.net wrote:
> > I'm planning to look into providing a back-port patch for this bug. It is
> marked as fixed in jdk 7, but a bunch of us really need it fixed in jdk 6 too.
> This Preferences Impl bug is a regression, as it works fine in jdk 5.
> >
> > That said, is anybody else already working on this, and/or any words of
> warning/wisdom/advice?
> >
>
> Hello.
>
> The issue in question was fixed under
>
> 6396599 (prefs) Preferences sync fails if jaxp transform provider
> doesn't support indent-number
>
> early in JDK 7 and the fix should also be in the OpenJDK 6 sources. The
> OpenJDK 6 sources branched off from JDK 7 around build 20, circa late
> August 2007 to early September 2007. If a fix was in JDK 7 before then,
> it should also be in OpenJDK 6.
>
> Regards,
>
> -Joe
Hi Joe,
Judging from the source in the newly published jdk6 bundle (b05-12_feb_2008), it appears the fix for this bug is included:
file: java/util/prefs/XmlSupport
/**
* Write XML document to the specified output stream.
*/
private static final void writeDoc(Document doc, OutputStream out)
throws IOException
{
try {
TransformerFactory tf = TransformerFactory.newInstance();
try {
tf.setAttribute("indent-number", new Integer(2));
} catch (IllegalArgumentException iae) {
//Ignore the IAE. Should not fail the writeout even the
//transformer provider does not support "indent-number".
}
...
Cool. Now how do I figure out when/if this code will make it into a release of jdk/jre 1.6? Dare I infer the "b05" might translate to jdk6 update 5?
Thanks,
Dan
More information about the jdk6-dev
mailing list