You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Richard Liang (JIRA)" <ji...@apache.org> on 2006/08/15 14:06:13 UTC

[jira] Created: (HARMONY-1192) [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object

[classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object
------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-1192
                 URL: http://issues.apache.org/jira/browse/HARMONY-1192
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Richard Liang
         Attachments: Haromny-1192.diff

Hello,

But in Harmony, when trying to serialize a non serializable object, we only throws an NotSerializableException. In the spec of Java "Object Serialization", it's said: Exceptions may occur during the traversal or may occur in the underlying stream. For any subclass of IOException, the exception is written to the stream using the exception protocol and the stream state is discarded.

I will attach a patch to fix this issue.

Best regards,
Richard



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1192) [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1192?page=all ]

Richard Liang updated HARMONY-1192:
-----------------------------------

    Attachment: Haromny-1192.diff

Hello,

Would you please try this patch? Thanks a lot.

Best regards,
Richard

> [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1192
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1192
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Attachments: Haromny-1192.diff
>
>
> Hello,
> But in Harmony, when trying to serialize a non serializable object, we only throws an NotSerializableException. In the spec of Java "Object Serialization", it's said: Exceptions may occur during the traversal or may occur in the underlying stream. For any subclass of IOException, the exception is written to the stream using the exception protocol and the stream state is discarded.
> I will attach a patch to fix this issue.
> Best regards,
> Richard

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-1192) [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1192?page=all ]

Paulex Yang closed HARMONY-1192.
--------------------------------


Verified by Richard.

> [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1192
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1192
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: Paulex Yang
>         Attachments: Haromny-1192.diff
>
>
> Hello,
> But in Harmony, when trying to serialize a non serializable object, we only throws an NotSerializableException. In the spec of Java "Object Serialization", it's said: Exceptions may occur during the traversal or may occur in the underlying stream. For any subclass of IOException, the exception is written to the stream using the exception protocol and the stream state is discarded.
> I will attach a patch to fix this issue.
> Best regards,
> Richard

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1192) [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1192?page=comments#action_12428618 ] 
            
Richard Liang commented on HARMONY-1192:
----------------------------------------

The fix looks good. Thanks a lot, Paulex. 

Best regards,
Richard

> [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1192
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1192
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: Paulex Yang
>         Attachments: Haromny-1192.diff
>
>
> Hello,
> But in Harmony, when trying to serialize a non serializable object, we only throws an NotSerializableException. In the spec of Java "Object Serialization", it's said: Exceptions may occur during the traversal or may occur in the underlying stream. For any subclass of IOException, the exception is written to the stream using the exception protocol and the stream state is discarded.
> I will attach a patch to fix this issue.
> Best regards,
> Richard

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-1192) [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1192?page=all ]

Paulex Yang reassigned HARMONY-1192:
------------------------------------

    Assignee: Paulex Yang

> [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1192
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1192
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: Paulex Yang
>         Attachments: Haromny-1192.diff
>
>
> Hello,
> But in Harmony, when trying to serialize a non serializable object, we only throws an NotSerializableException. In the spec of Java "Object Serialization", it's said: Exceptions may occur during the traversal or may occur in the underlying stream. For any subclass of IOException, the exception is written to the stream using the exception protocol and the stream state is discarded.
> I will attach a patch to fix this issue.
> Best regards,
> Richard

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-1192) [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1192?page=all ]

Paulex Yang resolved HARMONY-1192.
----------------------------------

    Resolution: Fixed

Richard, patch applied at revision r431833, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.


> [classlib][luni] java.io.ObjectOutputStream.writeObject() behaves incorrect when trying to serialize a non serializable object
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1192
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1192
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: Paulex Yang
>         Attachments: Haromny-1192.diff
>
>
> Hello,
> But in Harmony, when trying to serialize a non serializable object, we only throws an NotSerializableException. In the spec of Java "Object Serialization", it's said: Exceptions may occur during the traversal or may occur in the underlying stream. For any subclass of IOException, the exception is written to the stream using the exception protocol and the stream state is discarded.
> I will attach a patch to fix this issue.
> Best regards,
> Richard

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira