harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6244) [classlib][beans] java.beans.XMLEncoder fails to write SystemColor.activeCaption object correctly
Date Thu, 02 Jul 2009 06:46:47 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kevin Zhou resolved HARMONY-6244.
---------------------------------

    Resolution: Fixed

Patch applied in AWT repos at r790471.

> [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
>            Assignee: 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.


Mime
View raw message