Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360866

Summary: Assign value does not work for arrays without using the new keyword
Product: [Eclipse Project] JDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, sarika.sinha
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Michael Rennie CLA 2011-10-13 12:29:11 EDT
Using the following snippet:


package a;
public class AssignArray {
	public static void main(String[] args) {
		String[] array = new String[] {"hello", "world"};
		System.out.println(array); //bp here
	}
}

debug the program and try to change the complete set of values of the array (from the variables view detail pane).

The only way to replace the array is to use 'new String[] {"foo", "bar"}' during the assign value operation, but I would also expect just '{"foo", "bar"}' to work as well.
Comment 1 Eclipse Genie CLA 2019-12-07 14:19:29 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.
Comment 2 Sarika Sinha CLA 2019-12-08 23:00:19 EST
It behaves the same now as well.
Comment 3 Eclipse Genie CLA 2021-11-28 11:13:07 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.