Closed
Bug 256321
Opened 22 years ago
Closed 22 years ago
Regression: no serialization for IdScriptableObject
Categories
(Rhino Graveyard :: Core, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.6R1
People
(Reporter: igor, Assigned: igor)
Details
Attachments
(1 file)
|
4.02 KB,
patch
|
Details | Diff | Splinter Review |
To simplify usage of IdScriptableObject during work on E4X implementation and to
reduce the size of IdScriptableObject instances I added the internal class
IdScriptableObject.PrototypeValues which stores all variables related to
prototype id map.
In this way IdScriptableObject just needs one field, prototypeValues, to support
id mapping for prototype objects. But I forgot about serialization:
PrototypeValues does not implement Serializable which made IdScriptableObject
and the wast majority of Rhino objects unserializable.
| Assignee | ||
Comment 1•22 years ago
|
||
The patch does not change PrototypeValues to implement Serializable interface.
Instead it makes prototypeValues transient and during serialization of
IdScriptableObject simply records number of prototype entries so when the
object is read its prototype map is restored with empty initial state.
Thus the patch assumes that there is no value in serialization of prototype
entries and it OK to always rebuild them. But this is probably what the
application wants in any case.
| Assignee | ||
Comment 2•22 years ago
|
||
I committed the fix: if full serialization would be necessary (esoteric
situation AFAICS) the bug can be reopened but for now IdScriptableObject is
serializable again.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.5R6
You need to log in
before you can comment on or make changes to this bug.
Description
•