Bug 4952

Summary: Multiple breakpoints on the same line
Product: [Eclipse Project] JDT Reporter: Darin Swanson <Darin_Swanson>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Darin Swanson CLA 2001-10-12 18:12:30 EDT
Test Case
   From the JavaEditor, double click on the ruler beside a try statement
(try { ... a non-executable line of code)
Repeat at will

You will get multiple breakpoints
Comment 1 Jared Burns CLA 2001-10-15 11:10:47 EDT
This was caused by a bug in JDIDebugModel#isDuplicateLineBreakpoint. Iterating
over all breakpoints in the breakpoint manager, the method would first compare
the marker type to the given type. If that matched, it would then compare the
containing type (IType) of the new marker to the existing marker. However, the
method was calling breakpoint.getMarker().getType() which returns a string (the
marker type), not an IType (the declaring type).
I don't know how this method ever worked at all. Fixed to compare IType to IType
(via breakpoint.getType()). Please verify.