Bug 570313 - Java completion overwrite doesn't work with generic constructors
Summary: Java completion overwrite doesn't work with generic constructors
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.19   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-12 17:23 EST by Gayan Perera CLA
Modified: 2023-02-13 20:07 EST (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 Gayan Perera CLA 2021-01-12 17:23:08 EST
Take the following code

List<String> list = Array*List<>();

place the cursor at * position and select the constructor with initial capacity.

The expectation is
List<String> list = ArrayList<>(0);

But the actual is

List<String> list = ArrayList(0)<>();


This is same if i select a another subtype constructor.
Comment 1 Eclipse Genie CLA 2023-02-13 20:07:48 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.