Menu

#15 overloaded methods in Call Hierarchy

open
nobody
5
2003-07-04
2003-07-04
No

Let's have following situation:

class A {
public void setName ( String arg ) {
....
}
}

class B extends A {
public void setName ( String arg ) {
...
super.setName(arg);
}
public void aMethod () {
setName("a String");
}
}

Now, when i open the call hierarchy for A::
setName(String) i get two call references for that
Method. One from B::setName(String) which is correct.
The second from B::aMethod() which isn't correct
because it actually calls B:setName(String) which
overloads A::setName(String).

I'm using Call Hierarchy Plug-In v0.5.1

bye
Michael

Discussion


Log in to post a comment.

MongoDB Logo MongoDB