Community
Participate
Working Groups
Open declaration (F3) doesn't work if constructor not found. Consider this (invalid on purpose) code: $ cat foo/Klass.java package foo; public class Klass { public Klass(String a) { new foo.bar.Klass(""); } } $ cat foo/bar/Klass.java package foo.bar; public class Klass {} Putting cursor on Klass at "new foo.bar.Klass("");" line should jump to foo.bar.Klass but instead cursor moves to head of foo.Klass. It moves correctly if eg. constructor exists but is invisible.
Same cause, another symptom: import a class "foo.Klass" and specify a second class with its full name "foo.bar.Klass". Calling a non-existing constructor of the second lets "open declaration" jump to the imported class instead of to the one specified by the full class name, here "foo.Klass". import foo.Klass; public class Test { public void test() { new foo.bar.Klass(); } }
I can not reproduce the bug in I20090407-1430. I close this bug as WORKSFORME.
Verified for 3.5M7 using I20090426-2000