|
From: Rich S. <rse...@ya...> - 2001-05-04 15:32:09
|
Hi, I've been playing with the latest jython from CVS, and I'm having some trouble getting my code to work with it. When I attempt to call a Java method that is overridden in a python class, but not overridden in all intermediate python classes, I get a stack overflow. The following test program fails using the latest CVS, but works fine if I pull jython using the "Release_2_1alpha1" tag: from javax.swing import * class fooFrame(JFrame): def __init__(self): JFrame.__init__(self) class barFrame(fooFrame): def __init__(self): fooFrame.__init__(self) def setSize(self, width, height): fooFrame.setSize(self, width, height) if __name__ == "__main__": frm = barFrame() frm.setSize(100,100) frm.show() Regards, Rich Seddon _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |