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

Bug 335302

Summary: Breakpoint history dropdown shows same entry in local and global history
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: DebugAssignee: Dani Megert <daniel_megert>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: 3.7   
Target Milestone: 3.7   
Hardware: All   
OS: All   
Whiteboard:

Description Deepak Azad CLA 2011-01-25 07:58:59 EST
I20110124-1800
1. Fresh Workspace
2. Snippet to use
package p;
class A {
	void foo() {		
		bar();	//BP1
	}
	
	void bar() {
		foo();	//BP2
	}
}
3. Create a breakpoint at the line marked as BP1
4. In the Breakpoints view enter the condition for this breakpoint as "true;"
5. Create a breakpoint at the line marked as BP2
6. In the Breakpoints view enter the condition for this breakpoint as "false;"

7. Select the 1st breakpoint in Breakpoints view, history dropdown contents are
true;
false;
true;
=> Why does it have 3 entries, there should be only 2?
8. Select the 2nd breakpoint in Breakpoints view, history dropdown contents are
false;
false;
true;
=> Why does it have 3 entries ?
Breakpoint properties dialog has only 2 entries, which is correct.

9. Change the condition for the 2nd breakpoint to “true;” . History dropdown contents for BP2 are 
true;
false;
true;
false;
=> Why are there duplicate entries ? Breakpoint properties dialog still shows 
true;
false;

for BP1 the history dropdown contents are
true;
true;
false;
Comment 1 Dani Megert CLA 2011-01-26 05:29:08 EST
The duplicates are there because the upper part shows the local and the lower part shows the global history. I think we should leave it like that but add a separator as suggested in bug 335305.

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