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] Created: (HARMONY-6244) [classlib][beans] java.beans.XMLEncoder fails to write SystemColor.activeCaption object correctly
Date Wed, 24 Jun 2009 09:25:07 GMT
[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


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