From: Alan K. <jyt...@xh...> - 2011-11-08 00:23:41
|
[J.] > Do you see any issues in the way that Christopher is replacing the use of > PyJavaInstance with PyJavaType.wrapJavaObject? Looks good to me. Jython wraps java objects with proxies, so that when jython code references attributes on a java object, it is actually calling the wrapping proxy, which knows how to carry out reflection on the underlying java object and retrieve its attributes. An old style of creating such proxies was with PyJavaInstance. One of the new ways is with PyJavaType.wrapJavaObject(). So it should work just fine. > All of his Ptolemy tests passed, we're just looking for your thoughts on > closure here. If the tests are passing then that's a good sign. Alan. |