| Summary: | [Debug] Thread names are not updated | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Peter Larsen <peblpebl> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
When a thread changes its name, while showing the debug view, the debug view is not updated. The only way to get the debug view to show the new names is to select another view and go back. This a big problem in a multithreaded program where threads are reused. The following simple program shows it. Start in debug mode and show the debug view. After 10 seconds the thread name should change but doesnt. Build id: I20050811-1530 public class ThreadnameBug extends Thread{ public static void main(String[] artgs) { new ThreadnameBug().start(); } public void run() { try { System.out.println("Sets name to 1"); setName("Name1"); sleep(10000); System.out.println("Sets name to 2"); setName("Name2"); join(); } catch (InterruptedException e) {} } }