You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org> on 2006/08/30 09:46:22 UTC

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

[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


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

        

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

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

Paulex Yang reassigned HARMONY-1342:
------------------------------------

    Assignee: Paulex Yang

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

        

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

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

        

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

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

Paulex Yang closed HARMONY-1342.
--------------------------------


Verified by Jimmy.

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

        

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

Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1342?page=all ]

Jimmy, Jing Lv updated HARMONY-1342:
------------------------------------

    Attachment: Harmony-1342.diff

Hi,
    Would you please try my patch?Thanks!
Best Regards,
Jimmy

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

        

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

Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1342?page=comments#action_12432052 ] 
            
Jimmy, Jing Lv commented on HARMONY-1342:
-----------------------------------------

Hi Paulex,

    The fix is fine, thanks!

Best Regards,
Jimmy

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