Summary: | Multiple breakpoints on the same line | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Darin Swanson <Darin_Swanson> |
Component: | Debug | Assignee: | 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
2001-10-12 18:12:30 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. |