Skip to content

Commit 3cbf71c

Browse files
SarikaSinhaktatavarthi
authored andcommitted
Bug 578996 - Breakpoints cannot be place in nested lambdas
Change-Id: I38494b4f2d105fadd96a2d64460c2403775dee12 Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/191250 Tested-by: JDT Bot <[email protected]> Reviewed-by: Gayan Perera <[email protected]> Reviewed-by: Kalyan Prasad Tatavarthi <[email protected]>
1 parent 6b874c0 commit 3cbf71c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/ValidBreakpointLocationLocator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,8 @@ public boolean visit(LambdaExpression node) {
10531053

10541054
}
10551055
}
1056+
} else if (body instanceof LambdaExpression) {
1057+
body.accept(this);
10561058
}
10571059
}
10581060
return false;
@@ -1064,7 +1066,7 @@ private String toMethodName(IMethodBinding methodBinding) {
10641066
String key = methodBinding.getKey();
10651067
return key.substring(key.indexOf('.') + 1, key.indexOf('('));
10661068
}
1067-
1069+
10681070
/*
10691071
* (non-Javadoc)
10701072
*

0 commit comments

Comments
 (0)