Issue1311

classification
Title: Deserialize problem after reloading module or class
Type: Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, chupym, fwierzbicki, zyasoft
Priority: normal Keywords:

Created on 2009-04-08.12:35:54 by chupym, last changed 2015-02-08.06:19:27 by zyasoft.

Messages
msg4486 (view) Author: Nistor Gabriel (chupym) Date: 2009-04-08.12:35:54
envoirement:
-define a python class that extends a simple Java class.
-serialize an instance of the defined class
-reload the module or the class, trigerring a new proxy creation
-deserialize
result:
when you try to deserialize u will get an exception telling you that the
serialVersionUID is incompatible, this is the result of creating the new
proxy class that has a new name. In the class MakeProxies there is a
static proxy counter, removing that and keeping the same name for the
reloaded class resolved the problem.
msg9504 (view) Author: Jim Baker (zyasoft) Date: 2015-02-08.06:19:27
Clamp solves this problem with explicit support for serialVersionUID; see https://github.com/jimbaker/clamped/blob/master/talk.md#serialversionuid-and-dynamic-typing

Clamp is the correct solution here, so closing this out.
History
Date User Action Args
2015-02-08 06:19:27zyasoftsetstatus: open -> closed
resolution: remind -> out of date
messages: + msg9504
nosy: + zyasoft
versions: + Jython 2.7, - Jython 2.5
2013-02-19 21:25:46fwierzbickisetpriority: normal
assignee: cgroves ->
resolution: remind
versions: + Jython 2.5, - 2.5b1
2009-08-09 02:55:00fwierzbickisetnosy: + fwierzbicki
2009-05-31 21:25:02pjenveysetassignee: cgroves
nosy: + cgroves
2009-04-08 12:35:54chupymcreate