Bug 473101 - [content assist] Completion proposals fail to render the declaring type of array clone() methods
Summary: [content assist] Completion proposals fail to render the declaring type of ar...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 4.6 M1   Edit
Assignee: Noopur Gupta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 197569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-20 13:25 EDT by Stephan Herrmann CLA
Modified: 2015-07-31 09:31 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2015-07-20 13:25:09 EDT
See this SO question: http://stackoverflow.com/questions/31469457/eclipse-reporting-an-arrays-clone-method-is-from-its-corresponding-type-inc

There's even an answer with detailed code analysis of were the information gets lost.
Comment 1 Dani Megert CLA 2015-07-22 04:09:15 EDT
See CompletionProposalLabelProvider.extractDeclaringTypeFQN(CompletionProposal)
Comment 2 Dani Megert CLA 2015-07-22 04:09:31 EDT
*** Bug 197569 has been marked as a duplicate of this bug. ***
Comment 3 Eclipse Genie CLA 2015-07-31 08:24:00 EDT
New Gerrit change created: https://git.eclipse.org/r/52943
Comment 5 Noopur Gupta CLA 2015-07-31 09:31:42 EDT
(In reply to Dani Megert from comment #1)
> See
> CompletionProposalLabelProvider.extractDeclaringTypeFQN(CompletionProposal)

Here, we should preserve the array brackets to render and only erase the type parameters as the Javadocs of the invoking methods mention that the display label consists of the raw simple name of the declaring type.

Made the changes and released in master branch.