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 <jdt-bot@eclipse.org> Reviewed-by: Gayan Perera <gayanper@gmail.com> Reviewed-by: Kalyan Prasad Tatavarthi <kalyan_prasad@in.ibm.com>
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/ValidBreakpointLocationLocator.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/ValidBreakpointLocationLocator.java index 91d3864..7691d94 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/ValidBreakpointLocationLocator.java +++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/ValidBreakpointLocationLocator.java
@@ -1053,6 +1053,8 @@ } } + } else if (body instanceof LambdaExpression) { + body.accept(this); } } return false; @@ -1064,7 +1066,7 @@ String key = methodBinding.getKey(); return key.substring(key.indexOf('.') + 1, key.indexOf('(')); } - + /* * (non-Javadoc) *