Bug 544659 - [content assist] check generics for type proposals
Summary: [content assist] check generics for type proposals
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.10   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-21 06:20 EST by Julian Honnen CLA
Modified: 2021-04-06 05:31 EDT (History)
2 users (show)

See Also:


Attachments
screenshot (38.75 KB, image/png)
2019-02-21 06:20 EST, Julian Honnen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Honnen CLA 2019-02-21 06:20:44 EST
Created attachment 277641 [details]
screenshot

Example: I want to change the return type to List<String>

	public ArrayList<String> test() {
		return new ArrayList<>();
	}

-> I select ArrayList and start typing List instead. The content assist after "Li" proposes lots of irrelevant types (e.g. LinkageError), see screenshot.

Most of them could be filtered out (or at least ranked lower), because they have no (matching) generic type.
Comment 1 Dani Megert CLA 2019-02-21 09:20:49 EST
Good idea!
Comment 2 Juergen Baier CLA 2021-04-06 05:31:41 EDT
I just noticed the same behavior in Eclipse 4.19. This would be super-useful.