Skip to content

Commit 5321da4

Browse files
committed
Bug 579099 - Cannot create lambda entry breakpoints on same method on 2
different lines Change-Id: Idc63f56ca64c535a315f0e097bc37cbf56eb7507 Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/191506 Tested-by: JDT Bot <[email protected]> Reviewed-by: Sarika Sinha <[email protected]>
1 parent 88d6938 commit 5321da4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ToggleBreakpointAdapter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,7 @@ protected static IMethod getMethodHandle(IEditorPart editorPart, String typeName
12831283
* @param element the element to get the breakpoint from
12841284
* @return the current breakpoint from the element or <code>null</code>
12851285
*/
1286+
@SuppressWarnings("restriction")
12861287
protected static IJavaBreakpoint getMethodBreakpoint(IMember element) {
12871288
IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
12881289
IBreakpoint[] breakpoints = breakpointManager.getBreakpoints(JDIDebugModel.getPluginIdentifier());
@@ -1314,6 +1315,9 @@ protected static IJavaBreakpoint getMethodBreakpoint(IMember element) {
13141315
}
13151316
} else {
13161317
if (container instanceof IMethod) {
1318+
if (method instanceof org.eclipse.jdt.internal.core.LambdaMethod) {
1319+
return null;
1320+
}
13171321
if (method.getDeclaringType().getFullyQualifiedName().equals(container.getDeclaringType().getFullyQualifiedName())) {
13181322
if (method.isSimilar((IMethod) container)) {
13191323
return methodBreakpoint;

0 commit comments

Comments
 (0)