You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/07/17 08:31:04 UTC

[jira] Assigned: (HARMONY-4473) [classlib][beans] Current bean implementation does not persist awt.SystemColor properly

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

Tony Wu reassigned HARMONY-4473:
--------------------------------

    Assignee: Tony Wu

> [classlib][beans] Current bean implementation does not persist awt.SystemColor properly
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4473
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4473
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>            Assignee: Tony Wu
>         Attachments: HY-4473.patch
>
>
> The following test case will fail on Harmony but pass on RI:
> public void test_writeObject_java_awt_SystemColor() {
>         ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
>         XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
>             byteArrayOutputStream));
>         encoder.writeObject(SystemColor.activeCaption);
>         encoder.close();
>         DataInputStream stream = new DataInputStream(new ByteArrayInputStream(
>                 byteArrayOutputStream.toByteArray()));
>         XMLDecoder decoder = new XMLDecoder(stream);
>         SystemColor color = (SystemColor) decoder.readObject();
>         assertEquals(SystemColor.activeCaption, color);
>     }
> Seems that many persistence delegates for awt package are not implemented. I will add them.
> The awt classes need special treatment are:
> SystemColor,
> TextAttribute,
> MenuShortcut,
> awt.Component,
> awt.Container,
> Choice,
> Menu,
> MenuBar,
> awt.List,
> BorderLayout,
> CardLayout,
> GridLayout,
> Insets,
> Point,
> ScrollPane

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.