Alex Grönholm | 17 Mar 06:02
Picon
Gravatar

Inheriting from a Java class with no default constructor

How can I inherit from a Java class that doesn't have a default 
constructor? If I try this:

from java.beans import PropertyChangeSupport

class A(PropertyChangeSupport):
     def __init__(self):
         PropertyChangeSupport.__init__(self, self)

A()

I get: TypeError: Default constructor failed for Java superclass 
java.beans.PropertyChangeSupport

Is this impossible, or am I doing something wrong? Or is there a bug in 
Jython?
This was tested on SVN trunk.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Gmane