commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36071] - JCI: dependencies not managed
Date Mon, 08 Aug 2005 21:13:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36071>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36071





------- Additional Comments From plightbo@gmail.com  2005-08-08 23:13 -------
I didn't make myself clear. The change for Y does happen, but instances of X
don't change. For example:

class X extends Y {
  public int foo() {
    return 0;
  }
}

class Y  {
  public Y() {
    System.out.println("before");
  }
}

Now, right now, the expression "new X().foo()" will return 0 and "before" will
be printed to the console.

Now, change Y:

class Y  {
  public Y() {
    System.out.println("after");
  }
}

The expression "new X().foo()" will still return 0 and "before" will still be
printed to the console. 

Now, change X:

class X extends Y {
  public int foo() {
    return 1;
  }
}

Now expression "new X().foo()" will return 1 and "after" will be printed to the
console. 

What is happening is that X is somehow still linked to the old Y. Are you not
able to reproduce this?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message