Community
Participate
Working Groups
Build ID: 3.3M4 Steps To Reproduce: 1. Place the insertion point on a line which calls a contructor 2. Click Navigate->Open Declaration or type F3 3. File of callee opens but the class declaration line is highlighted instead of the constructor declaration. More information: This happens even for a public class which declared a single public constructor. A direct import of the class was present, i.e. import com.mycompany.mypackage.MyClass;
I cannot reproduce your problem with a simple test case: MyClass.java: package com.mycompany.mypackage; public class MyClass { int x; public MyClass() { super(); } public MyClass(int x) { super(); this.x = x; } } Test.java: package com.test; import com.mycompany.mypackage.MyClass; public class Test { MyClass mc = new MyClass(0); } When I put the mouse pointer on MyClass constructor in Test, then F3 opens Test.java _and_ selects the correct constructor. Can you provide a test case which reproduces the problem? Thanks
(In reply to comment #1) > I cannot reproduce your problem with a simple test case: > MyClass.java: > package com.mycompany.mypackage; > public class MyClass { > int x; > public MyClass() { > super(); > } > public MyClass(int x) { > super(); > this.x = x; > } > } > > Test.java: > package com.test; > import com.mycompany.mypackage.MyClass; > public class Test { > MyClass mc = new MyClass(0); > } > > When I put the mouse pointer on MyClass constructor in Test, then F3 opens > Test.java _and_ selects the correct constructor. > > Can you provide a test case which reproduces the problem? > Thanks Sorry but I client confidentiality prevents me from posting an example.
I cannot reproduce the problem. As there is no test case to reproduce the problem i close this bug as WORKSFORME.
Verified for 3.5M7 using I20090426-2000