Issue1311
Created on 2009-04-08.12:35:54 by chupym, last changed 2015-02-08.06:19:27 by zyasoft.
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.
|
|
Date |
User |
Action |
Args |
2015-02-08 06:19:27 | zyasoft | set | status: open -> closed resolution: remind -> out of date messages:
+ msg9504 nosy:
+ zyasoft versions:
+ Jython 2.7, - Jython 2.5 |
2013-02-19 21:25:46 | fwierzbicki | set | priority: normal assignee: cgroves -> resolution: remind versions:
+ Jython 2.5, - 2.5b1 |
2009-08-09 02:55:00 | fwierzbicki | set | nosy:
+ fwierzbicki |
2009-05-31 21:25:02 | pjenvey | set | assignee: cgroves nosy:
+ cgroves |
2009-04-08 12:35:54 | chupym | create | |
|