Bug 577105 - [autocomplete] automatically complete new array generator types
Summary: [autocomplete] automatically complete new array generator types
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.22   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-06 06:50 EDT by Christoph Laeubrich CLA
Modified: 2021-11-11 12:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Laeubrich CLA 2021-11-06 06:50:04 EDT
Given the following example tha autocomplete for toArray yield the following result:

Stream<String> example = Stream.of("a", "b");
example.toArray(generator);

as the generator is likely never a local variable it would help to have the following instead auto-completed:

Stream<String> example = Stream.of("a", "b");
example.toArray(String[]::new);

the same applies for Collection.toArray(...)