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/18 08:40:04 UTC
[jira] Commented: (HARMONY-4473) [classlib][beans] Current bean
implementation does not persist awt.Choice properly
[ https://issues.apache.org/jira/browse/HARMONY-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513449 ]
Tony Wu commented on HARMONY-4473:
----------------------------------
Patch applied at r557172 with minor modification (remove compiler warnings and message which prints to cmd line), please verify. Thanks.
> [classlib][beans] Current bean implementation does not persist awt.Choice 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, HY-4473.sh
>
>
> The following test case will throw StackOverflowError on Harmony but pass on RI:
> public void test_writeObject_java_awt_Choice() {
> ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
> XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
> byteArrayOutputStream));
> Choice choice = new Choice();
> encoder.writeObject(choice);
> encoder.close();
> DataInputStream stream = new DataInputStream(new ByteArrayInputStream(
> byteArrayOutputStream.toByteArray()));
> XMLDecoder decoder = new XMLDecoder(stream);
> Choice aChoice = (Choice) decoder.readObject();
> assertEquals(choice.getFocusTraversalKeysEnabled(), aChoice
> .getFocusTraversalKeysEnabled());
> }
> Besides Choice, the awt classes need special treatment are:
> SystemColor,
> TextAttribute,
> MenuShortcut,
> awt.Component,
> awt.Container,
> 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.