Details
-
Type:
Enhancement
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.2
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
Make several more core data structures serializable via java-serialization.
The attached patch is a minimal patch- serialVersionUIDs are not created, nor are redundant "implements Serializable" statements added to classes who already implement Serializable from some other interface. This patch also does not make functions, lazy lists, atoms, references, etc. serializable, nor those data structures that depend upon any of the above (so tree maps and tree sets, which depend upon an ordering function, are not serializable, for example). Only those data structures which can be reasonably expected to be serialized by one program and deserialized by another are made serializable. Whether any of these extra functions should be made serializable is a different debate.
The classes made serializable are:
PersistentVector$Node (PersistentVector is already serializable)
PersistentQueue
PersistentList
PersistentList$EmptyList
Converted from http://www.assembla.com/spaces/clojure/tickets/281
Attachments:
serial.diff - https://www.assembla.com/spaces/clojure/documents/aTM6uyl7Kr34JteJe5avMc/download/aTM6uyl7Kr34JteJe5avMc
serial2.diff - https://www.assembla.com/spaces/clojure/documents/dwWwVQmG0r37KxeJe5aVNr/download/dwWwVQmG0r37KxeJe5aVNr
serialization.diff - https://www.assembla.com/spaces/clojure/documents/bJZ074vWWr34fReJe5cbLA/download/bJZ074vWWr34fReJe5cbLA
281-tweaked-to-apply-to-current-master.patch - https://www.assembla.com/spaces/clojure/documents/dZLUVGv2yr35hJeJe5cbCb/download/dZLUVGv2yr35hJeJe5cbCb