Summary: | Open Declaration opens wrong target | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nico Seessle <nico> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert |
Version: | 3.0 | ||
Target Milestone: | 3.1 M3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Nico Seessle
2004-06-27 15:23:58 EDT
Looks like a model bug: also source and hover are wrong probably because codeSelect returns the wrong element. Problem is multiple consecutive anonymous classes. SelectionParser build only a partial AST but to build a JavaElement, all anonymous type are needed to compute the correct occurence count. Fixed and test added ResolveTest#testResolveLocalClass7() ResolveTest#testResolveLocalField2() ResolveTest#testResolveLocalMethod2() ResolveTest#testResolveLocalVariable() CompilationUnit#getElementAt() and ClassFile#getElementAtConsideringSibling() are used instead of HandleFactory. Verified for 3.1 M3 with build I200411020800 + org.eclipse.jdt.core v_517. |