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

Bug 133728

Summary: Changes not shown for nested partitioned variables
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.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
screenshot
none
screenshot none

Description Samantha Chan CLA 2006-03-28 17:06:07 EST
It doesn't matter if I have show columns on.
For a small array (e.g. smallArray in testcase) where the variable is not partitioned, if the array is changed, the changes are highlighted with red / yellow.

For a large array, changes are not shown as things get added in the array.  When strings are added in the "strings" array, the changes are not highlighted.


Testcase:
		String[] strings = new String[1000];	
		strings[0] = "a";
		strings[1] = "b";
		
		String[] smallArray = new String[5];
		smallArray[0] = "a";
		smallArray[1] = "b";
Comment 1 Darin Wright CLA 2006-05-02 16:05:03 EDT
This works for me. I would not expect it to work for logical structures, as the structure is computed new each time, and thus it has not really "changed" (or, the entire structure has changed, depending on how you look at it).
Comment 2 Darin Wright CLA 2006-05-02 16:07:15 EDT
Created attachment 40112 [details]
screenshot

After first step
Comment 3 Darin Wright CLA 2006-05-02 16:07:41 EDT
Created attachment 40113 [details]
screenshot

after next step
Comment 4 Darin Wright CLA 2006-05-02 16:08:06 EDT
marking as works for me
Comment 5 Curtis Windatt CLA 2007-04-10 11:55:19 EDT
Reopening as I just encountered this problem in I20070403-1110.

Highlighting works fine for small arrays.  If the array is large enough to be partitioned, the elements are not highlighted as they change.  Occurs with and without columns.
Comment 6 Darin Wright CLA 2007-04-12 17:37:37 EDT
When the array is accessed as one collection (not partitioned), it caches its variables to re-use them, so it can tell that the value has changed. When the array is accessed as an indexed collection by the partition, it does not cache its variables (each index) - it creates a new one each time, so it has no history, and thinks the value has not changed.
Comment 7 Darin Wright CLA 2007-05-29 17:20:08 EDT
Not planned for 3.3
Comment 8 Eclipse Genie CLA 2018-11-22 03:34:53 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.