Message5742

Author zyasoft
Recipients tlocke, tomstrummer, zyasoft
Date 2010-04-25.18:04:54
SpamBayes Score 1.5120162e-09
Marked as misclassified No
Message-id <1272218696.56.0.0473766336444.issue1601@psf.upfronthosting.co.za>
In-reply-to
Content
Fixed in r7045

Actually it's a little more complicated - the abstract class PyTableCode also has to be serializable. But (almost) all code objects that extend PyTableCode are going to be in a separate class loader. (Clamp should enable some change of this. Maybe.)

Fortunately, Java provides support for serialization of such classes, through a registration mechanism in subclassed ObjectOutputStream/ObjectInputStream. Take a look at PyJavaType.java for the Java implementation and test_java_integration.py for a Python implementation. Both are based on the blog post in http://weblogs.java.net/blog/emcmanus/archive/2007/04/cloning_java_ob.html
History
Date User Action Args
2010-04-25 18:04:56zyasoftsetmessageid: <1272218696.56.0.0473766336444.issue1601@psf.upfronthosting.co.za>
2010-04-25 18:04:56zyasoftsetrecipients: + zyasoft, tomstrummer, tlocke
2010-04-25 18:04:56zyasoftlinkissue1601 messages
2010-04-25 18:04:55zyasoftcreate