Summary: | [content assist] proposes nothing for generic type with non-trivial constructor | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | David Audel <david_audel> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | daniel_megert, Olivier_Thomann | ||||
Version: | 3.5 | Flags: | Olivier_Thomann:
review+
kent_johnson: review+ |
||||
Target Milestone: | 3.5 RC2 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Markus Keller
2009-05-19 09:41:15 EDT
Nothing coming back from completion engine. Created attachment 136486 [details]
Proposed patch
When the constructor has parameters, CompletionEngine#getResolvedSignature() computes the binding of the declaring type from the type name.
If the type is generic then a RawTypeBinding is computed and getResolvedSignature() assumed that this binding was a SourceTypeBinding.
The erasure of the computed binding must be used instead.
Olivier, could review the patch ? Kent, could you review the patch ? +1. Patch looks good. Released for 3.5RC2. Tests added CompletionTests2#testBug276890_01() -> testBug276890_03() Verified in I20090520-2000. |