You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kevin Zhou (JIRA)" <ji...@apache.org> on 2009/06/29 05:24:47 UTC
[jira] Updated: (HARMONY-6244) [classlib][beans]
java.beans.XMLEncoder fails to write SystemColor.activeCaption object
correctly
[ https://issues.apache.org/jira/browse/HARMONY-6244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Zhou updated HARMONY-6244:
--------------------------------
Attachment: HARMONY-6244.diff
Would you please help to try it?
> [classlib][beans] java.beans.XMLEncoder fails to write SystemColor.activeCaption object correctly
> -------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6244
> URL: https://issues.apache.org/jira/browse/HARMONY-6244
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M10
> Reporter: Kevin Zhou
> Fix For: 5.0M11
>
> Attachments: HARMONY-6244.diff
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Given a test case [1], RI outputs differently from HARMONY.
> RI's outputs:
> <java version="1.5.0_06" class="java.beans.XMLDecoder">
> <object class="java.awt.SystemColor" field="activeCaption"/>
> </java>
> while HARMONY outputs:
> <java version="1.5.0" class="java.beans.XMLDecoder">
> <object class="java.awt.SystemColor" field="textHighlight"/>
> </java>
> [1] Test Case:
> public void test_writeObject_java_awt_SystemColor() {
> ByteArrayOutputStream bos = new ByteArrayOutputStream();
> XMLEncoder encoder = new XMLEncoder(bos);
> encoder.writeObject(SystemColor.activeCaption);
> encoder.close();
> System.out.println(bos.toString());
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.