|
From: Samuele P. <pe...@in...> - 2001-06-13 17:41:20
|
Hi.
> 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
>
Yes, it's a bug, I have added it to the bug tracker.
Thanks for the report.
|