Thursday, April 05, 2007

Undocumented Jython — Java callable Jython class idiom

You have to do

and not

in order to make jythonc generate the function calls you want in the intermediate Java code.

And as I'm in a “Jython calls Java calls Jython” state, doing some transcoding/refactoring, I have still not managed to get Jython at the front to call nicely into the Jython at the back.


method myPackage.Backplane.performSetup of myPackage.Backplane instance 1
Traceback (innermost last):
AttributeError: abstract method "performSetup" not implemented

despite it being there quite plain as day:-

and despite Java code calling it quite happily.


Post a Comment