Bug 239694 - [templates] Template proposal "toarray" fails for List<String[]>
Summary: [templates] Template proposal "toarray" fails for List<String[]>
Status: REOPENED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.15   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-05 18:10 EDT by Michael Schierl CLA
Modified: 2024-03-27 13:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schierl CLA 2008-07-05 18:10:09 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. Copy&Paste this incomplete class:

import java.util.List;

public class ToArray {
	public String[][] ToArrayBug(List<String[]> list) {
		return toarray
	}
}

2. Place cursor after »return toarray«
3. Press Ctrl+Space, Ctrl+Space, Return to complete the template proposal

Actual Result (does not compile):
return (String[][]) list.toArray(new String[][list.size()]);

Expected Result:
return (String[][]) list.toArray(new String[list.size()][]);


More information:
Comment 1 Michael Schierl CLA 2009-07-27 15:06:09 EDT
still present in 3.5
Comment 2 Eclipse Genie CLA 2020-04-14 20:05:15 EDT
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.
Comment 3 Michael Schierl CLA 2020-04-15 12:01:05 EDT
Still happening in 2020-03.
Comment 4 Eclipse Genie CLA 2022-04-06 13:29:27 EDT
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.
Comment 5 Michael Schierl CLA 2022-04-06 16:08:04 EDT
Still happening in 2022-03.
Comment 6 Eclipse Genie CLA 2024-03-27 00:44:58 EDT
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.
Comment 7 Michael Schierl CLA 2024-03-27 13:24:17 EDT
Still happening in 2023-12