How to call a Java superclass from jpython ??

Markus A. Greiner m.greiner at t-online.de
Mon Jun 21 21:35:49 CEST 1999


Hello,

I´m trying to port some java applications into jpython.
Now I got a problem. I´m not able to call a java superclass from
jpython.
Did anybody know how to call them? Here the code I´m trying to convert:

It´s from PropertiesMetalTheme.java of the JDK Metalworks example.
In method initcolors:

	...
	primary1 = super.getPrimary1()

Everything I tried in jpython failed. In some other cases replacing the
super call into a construct like:

	...
	ParentClass.method(self) 

works fine, but in this case

	...
	DefaultMetalTheme.getPrimary1()

and all other constructs failed. I´m using JPython 1.1 beta 2 so
calls like self.super__method are obsolte and didn´t work anymore.
(I think :-)) or better I tried without success)

Thanks Markus




More information about the Python-list mailing list