hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-41) define non-random serialVersionUID
Date Sun, 11 Feb 2007 12:01:05 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472093
] 

Roland Weber commented on HTTPCORE-41:
--------------------------------------

Hi Oleg,

after having another look into the serialization spec, I'd like to remove the serialVersionUID
from our classes altogether. If we want to support migration of serialized data in the presence
of "evolution", we should have a concept and test cases. If we don't, we shouldn't set serialVersionUID
so that the serialization mechanism can detect changes. Or did I interpret something wrong
in the spec?

The generated values are not random but can be computed using the serialver tool, so there
is no need to change them.

cheers,
  Roland

(I've see version-based serialVersionUIDs at work.)


> define non-random serialVersionUID
> ----------------------------------
>
>                 Key: HTTPCORE-41
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-41
>             Project: HttpComponents Core
>          Issue Type: Improvement
>    Affects Versions: 4.0-alpha3
>            Reporter: Roland Weber
>         Assigned To: Roland Weber
>            Priority: Trivial
>
> Serializable classes have a serialVersionUID which seems to be an auto-generated hash
that does not give any indication on how to update it.
> Replace with a definition based on the component version, for example:
>    serialVersionUID = 0x400a4L
> for version 4.0, fixlevel 0, alpha 4.
> Let me know what you think,
>   Roland

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message