Community
Participate
Working Groups
There seams to be an error in the mechanism, which is responsible for finding the correct code position, when opening a method declation (by pressing F3). Given the following class definition with an overloaded method: A no-arg version and a one-arg version of this method: public class C { /** * The overloaded method with no args. */ public void overloadedMethod() { /* ... */ } /** * The overloaded method with one arg. */ public void overloadedMethod(int i) { /* ... */ } } Now call those methods from some other place in the following way: overloadedMethod(); // OK: F3 jumps to no-arg version #overloadedMethod() overloadedMethod(42); // OK: F3 jumps to one-arg version #overloadedMethod(int) overloadedMethod(UNDEFINED_VARIABLE); // WRONG: F3 jumps to no-arg version #overloadedMethod() The first two calls are thought to be correct calls. The third call is thought to have an undefined variable name as its argument. This of course results in a compile error, but you should at least be able to open the declaration of the method by pressing F3, when the cursor is above the method call. But this is _not_ the case! In fact, when you try to open the method declaration, you will jump to the declaration of the _no-arg_ version. BTW: The analog problem occurs for the Javadoc View (Menu: Window->Show View->Javadoc): The no-arg version is described when the cursor is above the method call, which uses the undefined argument.
*** This bug has been marked as a duplicate of 116573 ***