Bug 15568

Summary: Watchpoints, method breakpoints in interesting locations not showing in editor ruler
Product: [Eclipse Project] JDT Reporter: Darin Swanson <Darin_Swanson>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: All   
Whiteboard:

Description Darin Swanson CLA 2002-05-08 14:30:07 EDT
In java.lang.String, place a watchpoint on "serialVersionUID" in the private 
static CaseInsensitiveComparator class when you have open the source on the 
class String.  The watchpoint does not show in the editor ruler.

If you open the type CaseInsensitiveComparator, and add the watchpoint, the 
breakpoint shows in the ruler.
Comment 1 Darin Swanson CLA 2002-05-08 14:31:37 EDT
Same situation for method breakpoints.
Comment 2 Darin Wright CLA 2002-05-09 20:47:14 EDT
Moving to JUI - the marker annotation model & ruler lives there.
Comment 3 Darin Wright CLA 2002-05-09 20:47:49 EDT
More clarification - a watchpoint or method breakpoint on an inner class does 
not appear in the ruler in the top-level class.
Comment 4 Erich Gamma CLA 2002-05-11 06:45:42 EDT
even more clarification:
* methodbreakpoint show up properly in methods of the 
  top level type, but not in methods of inner types.
* when opening the inner type in its own editor using F3 then the breakpoint 
shows up properly.

When the editor tests for affected markers it only tests the class file that is 
its input. It doesn't test against inner classes. The test is done using the 
JDT Core provided method JavaCore.getJavaCore().isReferencedBy(). This method 
would have to handle this case. - on to JDT CORE
Comment 5 Philipe Mulet CLA 2002-05-14 10:19:31 EDT
JavaCore#isReferencedBy APIs are now able to cycle through enclosing types as 
well.

Fixed