6486887: (prefs) Preferences sync fails if jaxp transform provider doesn't support indent-number
Joseph D. Darcy
Joe.Darcy at Sun.COM
Sun Feb 17 20:51:52 PST 2008
bha at worldnet.att.net wrote:
> -------------- 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 hworks 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?
Hello.
That is a separate question. OpenJDK 6 and Sun's 6 updates are
different, but related, release trains. The "b05" in this case is
build 5 of OpenJDK 6, which has no direct relation to 6 update 5. I'll
be posting some thoughts on criteria for getting bug fixes into OpenJDK
6 versus JDK 7 versus a 6 update release in the near future. However,
to get 6396599 fixed in a 6 update release, I suggest you and others
interested in a fix add votes for the bug on bugs.sun.com; I'll also
forward this issue to those who run the 6 update releases.
Cheers,
-Joe
More information about the jdk6-dev
mailing list