Issue1227797
Created on 2005-06-26.16:31:14 by rcouplan, last changed 2009-03-14.01:01:53 by fwierzbicki.
msg990 (view) |
Author: Rick Coupland (rcouplan) |
Date: 2005-06-26.16:31:14 |
|
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.
|
msg4271 (view) |
Author: Frank Wierzbicki (fwierzbicki) |
Date: 2009-03-14.01:01:52 |
|
jythonc is no longer maintained.
|
|
Date |
User |
Action |
Args |
2009-03-14 01:01:53 | fwierzbicki | set | status: open -> closed resolution: wont fix messages:
+ msg4271 nosy:
+ fwierzbicki |
2005-06-26 16:31:14 | rcouplan | create | |
|