| Summary: | [hovering] @see method link in Javadoc doesn't work correctly if the method is in superclass | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Lakshmi P Shanmugam <lshanmug> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r |
| Version: | 3.6 | ||
| Target Milestone: | 3.7 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Works in 3.5.2 - got broken during 3.6 M3. Additional problem is that the focus is gone after that (not returned to editor). Seems to work on Linux. Maybe caused by fix for bug 275890 and bug 276065. Restoring summary and severity. This bug is about links to methods from supertypes. This never worked because JavaElementLinks#parseURI(URI) just resolves the link with type.getMethod(..) etc. for now. See //TODO: reference can also point to method from supertype Agree. Filed bug 314432 for the problem I found. Fixed in org.eclipse.jdt.internal.ui.viewsupport.JavaElementLinks. |
Consider the following 2 classes: public class ClassParent { public void foo1() { } } public class ClassChild extends ClassParent{ /** * @see #foo1() */ public void foo2() { foo1(); } } Steps to reproduce: 1) Open ClassChild and select method foo2 2) In the javadoc view, under the See Also section there is link to method foo1, click on foo1 link. The javadoc for ClassChild opens instead of the doc for foo1. Selecting foo1 in @see #foo1 in the Java editor shows the javadoc correctly in the javadoc view.