[CONTROLLER-1031] Clustering: Use generated serialVersionUID for Serializable messages Created: 19/Nov/14 Updated: 10/Feb/15 Resolved: 10/Feb/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tom Pantelis | Assignee: | Tom Pantelis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2410 |
| Description |
|
https://git.opendaylight.org/gerrit/#/c/12649/ changed several Serializable messages classes to set serialVersionUID to 1. However this will break backwards compatibility when attempting to de-serialized messages from a prior Helium version since no serialVersionUID was not previously set. Instead of setting it to 1, we need to set it to a generated value which should match the value generated at runtime for a previous serialized version of the class. |
| Comments |
| Comment by Tom Pantelis [ 04/Feb/15 ] |