Message990
I created a Python source file containing single class definition
with a Java callable constructor and a Java callable method
(using @sig). After compiling this with jythonc to create a Java
class file, I tried loading it and testing it from the jython
interpreter. I was able to create an instance of the class without
error. However, when I tried to call the Java callable method I
got the error 'abstract method "doval" not implemented'. I am
able to create instances of the class and call the method
without error from a Java program.
After investigating, I discovered that the __init__ fuction for the
class was not being called and the class symbol table was not
being created when creating an instance of the class from the
jython interpreter. I traced this down to a problem in
Py.initProxy where it was returning without doing anything other
than seting the __instance and __proxy variables because the
getInitializingProxy() method of the current ThreadState returned
a non-null PyInstance object. However, I don't know enough
about Jython to know what caused this or how to fix it. |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:23 | admin | link | issue1227797 messages |
2008-02-20 17:17:23 | admin | create | |
|