Issue1227797

classification
Title: Problems calling compiled Jython class from interpreter
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, rcouplan
Priority: low Keywords:

Created on 2005-06-26.16:31:14 by rcouplan, last changed 2009-03-14.01:01:53 by fwierzbicki.

Messages
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.
History
Date User Action Args
2009-03-14 01:01:53fwierzbickisetstatus: open -> closed
resolution: wont fix
messages: + msg4271
nosy: + fwierzbicki
2005-06-26 16:31:14rcouplancreate