I'd like to provide :
private void writeObject(java.io.ObjectOutputStream out)
throws IOException
private void readObject(java.io.ObjectInputStream in)
throws IOException, ClassNotFoundException;
methods on a gen-classed class to handle my own serialisation.
I can get around the immutability of my state field by using
java.lang.reflect.Field.setAccessible(true).
My methods have to present the exact signature above to the serialisation layer
in order to replace standard serialisation, but I don't seem to be able to get
^{:private true} to make them appear as private and I cannot find any means to
decorate their signatures with Exceptions.
So, for the moment, I am having to live with some hacky workarounds.
Am I missing something, or does Clojure's Java interop not yet stretch to this
sort of thing ? It would be nice if it did.
thanks for your time,
Jules
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en