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

Bug 149904

Summary: Resumed target selection disappears
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Darin Wright CLA 2006-07-06 17:14:12 EDT
Happens in 3.2.1 and HEAD.

After fixing bug 146880, the target is selected when it is resumed. Sometimes, the target selection flickers and then goes to empty. It appears that the target gets selected, but a 'preserving selection' runnable on the tree attempts to restore the selection to the selected stack frame, which no longer exists in the model, resetting the selection to empty.

Steps:

* Start a debug target
* Select target
* Manually suspend target
* Select first thread in main thread
* Resume

> This resumes the target, and should select the target. Sometimes the selection ends up empty.

import java.io.IOException;
import java.util.Hashtable;

public class TestChange {

        public static void main(String[] args) {
                Hashtable table = new Hashtable();
                table.put("a", "A");
                table.put("b", "B");
                table.put("a", "C");

                System.out.println("Enter something");
                try {
                        System.in.read();
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
        }

}
Comment 1 Darin Wright CLA 2006-07-14 12:37:27 EDT
This is now fixed, with the fix to bug 150193 

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