Bug 4952 - Multiple breakpoints on the same line
Summary: Multiple breakpoints on the same line
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-12 18:12 EDT by Darin Swanson CLA
Modified: 2001-10-15 11:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.