Skip to content

Commit

Permalink
Bugfix for eclipse-jdt#518 (Setting a breakpoint inside lambda with o…
Browse files Browse the repository at this point in the history
…bject).
  • Loading branch information
nettozahler committed Oct 1, 2024
1 parent 6218bff commit e8fcc02
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,10 +1066,16 @@ public boolean visit(LambdaExpression node) {

}
}

// Lambda body can be a block (which is handled above) or an (arbitrary) expression. So maybe the
// following cases are insufficient and should be replaced by handling the general
// org.eclipse.jdt.core.dom.Expression.
} else if (body instanceof LambdaExpression) {
body.accept(this);
} else if (body instanceof MethodInvocation) {
body.accept(this);
} else if (body instanceof ClassInstanceCreation) {
body.accept(this);
}
}
return false;
Expand Down

0 comments on commit e8fcc02

Please sign in to comment.