|
From: Ferenc H. <fer...@co...> - 2002-09-10 11:21:33
|
Hi!
I'm new to jython and I have a problem that I think is a "new beginner
issue"... I have a simple java interface:
=20
public interface dummyInterface {
public void setFilter(InterfaceFilter filter);
}
=20
which I try to implement in jython by doing the following:
=20
class A(dummyInterface):
def __init__(self):
self.filter =3D None
def ok(self, c):
if (self.filter=3D=3DNone):
return 1
else:
return self.filter.accept(0,0,c,None)
def setFilter(self, filter):
self.filter =3D filter
=20
but it results in an exception that is large enough to cause stack
overflow. (InterfaceFilter has a method that returns a Boolean value
based on the input variables.)
=20
If I remove "(dummyInterface)" from the first line then it works fine.
However, I need it to be an interface to be able to use it with existing
java classes that requires this interface to be implemented.
=20
Does anyone know what I'm doing wrong??
=20
Please help me
=20
/Ferenc
=20
=20
|