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

Bug 311848

Summary: return statement missing in JavaBreakpointListenerProxy#installingBreakpoint
Product: [Eclipse Project] JDT Reporter: Jürgen King <j.king>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse, Michael_Rennie
Version: 3.6Flags: Michael_Rennie: review+
Target Milestone: 3.6 RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch none

Description Jürgen King CLA 2010-05-06 06:01:37 EDT
Build Identifier: M20090917-0800

The installBreakpoint Method in JavaBreakpointListenerProxy (a inner class of BreakpointListenerManager) is implemented this way:

public int installingBreakpoint(IJavaDebugTarget target, IJavaBreakpoint breakpoint, IJavaType type) {
   IJavaBreakpointListener delegate = getDelegate();
   if (delegate != null) {
      delegate.installingBreakpoint(target, breakpoint, type);
   }
   return IJavaBreakpointListener.DONT_CARE;
}

This way the return of the delegate is ignored. To me the correct statement would be:

return delegate.installingBreakpoint(target, breakpoint, type);

like it is in breakpointHit.

Reproducible: Always
Comment 1 Darin Wright CLA 2010-05-06 09:35:59 EDT
Created attachment 167302 [details]
patch

Yes, this is a bug.
Comment 2 Darin Wright CLA 2010-05-06 09:41:30 EDT
Pleaes review, Mike.
Comment 3 Darin Wright CLA 2010-05-11 10:53:33 EDT
Ping Mike for RC1 review.
Comment 4 Michael Rennie CLA 2010-05-11 13:57:15 EDT
+1 applied to HEAD