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

Bug 223984

Summary: Assign Value does not correctly report error when logical structures is turned on
Product: [Eclipse Project] JDT Reporter: Samantha Chan <chanskw>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Samantha Chan CLA 2008-03-25 17:22:41 EDT
1.  stop at breakpoint
2.  In the variables view, turn on logical structure
3.  Expand collection one, and select [0]
4.  RMC -> Change Value...
5.  enter "return new String("abc");" in the change object value dialog.

Something is changed in the variables view.  Children for [0] becomes "count" and "hashcode".  This change should not be allowed and should return error since the type of the new value does not match the variable type.  If logical structure is turned off, error is reported correctly.


Testcase:

HashMap collection1 = new HashMap();

// Adding
collection1.put( new String( "Harriet" ), new String( "Bone" ) );
collection1.put( new String( "Bailey" ),  new String( "Big Chair" ) );
collection1.put( new String( "Max" ),     new String( "Tennis Ball" ) );  // BREAKPOINT
Comment 1 Eclipse Genie CLA 2020-03-02 11:46:57 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. 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.