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

[jira] Created: (HARMONY-4473) [classlib][beans] Current java6 bean implementation does not persist java.lang.refect.Method properly

[classlib][beans] Current java6 bean implementation does not persist java.lang.refect.Method properly
-----------------------------------------------------------------------------------------------------

                 Key: HARMONY-4473
                 URL: https://issues.apache.org/jira/browse/HARMONY-4473
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: spark shen


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.


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

Posted by "spark shen (JIRA)" <ji...@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:     (was: HY-4473.sh)

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-4473:
--------------------------------

    Description: 
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

  was:
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


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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen closed HARMONY-4473.
-------------------------------

    Resolution: Fixed

Verified at r557142. 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.


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

Posted by "spark shen (JIRA)" <ji...@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.sh

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


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

Posted by "spark shen (JIRA)" <ji...@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.sh

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


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

Posted by "spark shen (JIRA)" <ji...@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.


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

Posted by "spark shen (JIRA)" <ji...@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
>
>
> 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.


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "spark shen (JIRA)" <ji...@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:     (was: 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
>
> 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.


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-4473:
--------------------------------

    Summary: [classlib][beans] Current bean implementation does not persist awt.Choice properly  (was: [classlib][beans] Current bean implementation does not persist awt.SystemColor properly)

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-4473:
--------------------------------

    Summary: [classlib][beans] Current bean implementation does not persist awt.SystemColor properly  (was: [classlib][beans] Current java6 bean implementation does not persist java.lang.refect.Method properly)

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


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

Posted by "spark shen (JIRA)" <ji...@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

This patch provides implementation for awt.Choice PersistenceDelegate. Delegate for other awt classes will be provided in other JIRA to reduce the size of each patch.

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


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

Posted by "spark shen (JIRA)" <ji...@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:     (was: 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
>
> 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.