harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang Paulex" <paulex.y...@gmail.com>
Subject [classlib][beans]PersistentDelegates implementations(Re: [jira] Updated: (HARMONY-4473) [classlib][beans] Current bean implementation does not persist awt.Choice properly)
Date Wed, 18 Jul 2007 06:50:44 GMT
Spark,

I noticed that you were working at the persistent delegation implementations
recently, thanks for this enhancement. But I'm a little confused on this
patch and some others before, seems you are adding the implementations to
java.beans package, but in our former implementations, there are some for
primitive types in o.a.h.beans, I suppose they are actually stuffs in same
category, so does it make sense to make them in same package?

2007/7/18, spark shen (JIRA) <jira@apache.org>:
>
>
>      [
> https://issues.apache.org/jira/browse/HARMONY-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> spark shen updated HARMONY-4473:
> --------------------------------
>
>     Attachment: HY-4473.patch
>
> > [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.
>
>


-- 
Paulex Yang
China Software Development laboratory
IBM

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message