|
From: Daniel M. <ma...@cy...> - 2001-06-12 20:49:43
|
The following seems to be a bug in Jython2.0
JAVA:
public class A {
public A () {
foo();
}
protected void foo () {
System.out.println("A");
}
protected void goo () {
foo();
}
}
JYTHON:
import A
class B(A):
def __init__(self):
A.__init__(self)
def foo(self):
print "B"
b = B() # prints A -- OUCH!! BAD!!
b.foo() # prints B -- good
b.goo() # prints B -- good
Daniel Mahler
|