Bug 577105

Summary: [autocomplete] automatically complete new array generator types
Product: [Eclipse Project] JDT Reporter: Christoph Laeubrich <laeubi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.22   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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(...)