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

Bug 273393

Summary: Turning off Thread Groups doesn't work when selection is on a breakpoint
Product: [Eclipse Project] JDT Reporter: Tomasz Zarna <tomasz.zarna>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse, Michael_Rennie
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Thread Groups are shown even though the option is off
none
I didn't notice it at the first time none

Description Tomasz Zarna CLA 2009-04-23 05:27:53 EDT
I20090421-0930

Steps:
1. When suspended on a breakpoint turn on Thread Groups
2. The tree will be updated showing the groups now
3. Set selection back on the breakpoint from 1.
4. Turn off Thread Groups
=> Nothing happens
Comment 1 Tomasz Zarna CLA 2009-04-23 05:31:06 EDT
Created attachment 132907 [details]
Thread Groups are shown even though the option is off
Comment 2 Darin Wright CLA 2009-04-23 16:36:47 EDT
I can't reproduce. Is there anything in your .log?
Comment 3 Tomasz Zarna CLA 2009-04-24 04:43:05 EDT
(In reply to comment #2)
> I can't reproduce. Is there anything in your .log?

You're right, it doesn't happen every time. Here are more detailed steps:
1. Check out o.e.compare
2. Set a break point at line 96 of org.eclipse.compare.structuremergeviewer.StructureCreator, it's in StructureCreator.createStructure(Object, IProgressMonitor) where internalCreateStructure is called
3. Start runtime Eclipse in debug mode
4. Compare two Java files
5. When the breakpoint is hit, turn on Thread Groups via Debug view's drop down menu
6. The tree will be updated, selection lost, so set selection back on the breakpoint from 2.
7. Turn off Thread Groups
=> It's not that nothing happens as I stated in comment 0... stack trace gets duplicated, take a look at the following screenshot




Comment 4 Tomasz Zarna CLA 2009-04-24 04:44:48 EDT
Created attachment 133078 [details]
I didn't notice it at the first time
Comment 5 Michael Rennie CLA 2011-11-09 12:47:44 EST
I noticed this again in: 

Version: 3.8.0
Build id: I20111101-0800

I think the underlying problem is that we are not properly handling the backing data items as mentioned in bug 126379.

Marking as a dupe of bug 126379

*** This bug has been marked as a duplicate of bug 126379 ***