Message313
I had the following pattern in my code:
from javax.swing.tree import *
from a import * # java package containing A
class B (A, TreeModelListener):
def __init__(self):
A.__init__(self)
...
...
# including methods implementing TreeModelListener
this would cause an 'invalid self parameter'
exception to be thrown at the A.__init__
call for the jythonc compiled code,
but ran under the interpreter.
Creating a separate class for the listener
that just wrapped the B instance solved the problem.
I know that inheriting from multiple Java classes
is disallowed but I think class and interfaces
should be OK since it is supported in Java.
BTW. the jython FAQ is now empty
thanks
Daniel Mahler |
|
Date |
User |
Action |
Args |
2008-02-20 17:16:50 | admin | link | issue428414 messages |
2008-02-20 17:16:50 | admin | create | |
|