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

[jira] Resolved: (HARMONY-1342) [classlib][luni]ObjectStreamClass define in Serialization should set SerialVersionUID to zero if the class is enum

     [ http://issues.apache.org/jira/browse/HARMONY-1342?page=all ]

Paulex Yang resolved HARMONY-1342.
----------------------------------

    Resolution: Fixed

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


> [classlib][luni]ObjectStreamClass define in Serialization should set SerialVersionUID to zero if the class is enum
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1342
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1342
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony-1342.diff
>
>
> Hi,
>     In object serialization, every class to serialization will define its ObjectStreamClass and set SerialVersionUID, if the class is enum, the SerialVersionUID should be set to zero.
>     Current code in Harmony set enum SerialVersionUID to zero after the ObjectStreamClass is defined(in writing object, etc.). It should be set during the defination to avoid possible bugs. And other redundant operation can be deleted.

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