Summary: | [search] Binary java method model elements returned by SearchEngine have unresolved parameter types | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Brian de Alwis <bsd> | ||||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | ||||||||
Version: | 3.1 | ||||||||
Target Milestone: | 3.2 M4 | ||||||||
Hardware: | PC | ||||||||
OS: | Linux-GTK | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Brian de Alwis
2005-12-06 21:17:58 EST
Created attachment 31266 [details]
Plugin demonstrating problem
A simple plug-in for Eclipse R3.1 that displays the results of SearchEngine.searchDeclarationsOfSentMessages() for org.eclipse.jdt.ui.JavaElementLabelProvider. Note that methods with non-primitive argument types (e.g., Object) do not get proper images.
Thanks for the plugin which easily demonstrates the problem. The origin of this issue is in the way MethodLocator create handle for method while reporting declaration match (see method MethodLocator.reportDeclaration(...)). On binary type, current implementation is not enough detailed and missed the correct IMethod. It should be implemented in a similar way as it is done in MatchLocator.createHandle(AbstractMethodDeclaration,IJavaElement)... Created attachment 31319 [details]
Patch to fix this issue
This is a specific eclipse patch format including 2 projects:
- org.eclipse.jdt.core
- org.eclipse.jdt.core.tests.model
Patch released in HEAD. Test case added in JavaSearchBugsTests Verified for 3.2 M4 using build I20051213-0010 |