Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate if LE.tagAsHavingIgnoredMandatoryErrors(int) is incorrectly short circuiting lambda exception analysis #1169

Closed
srikanth-sankaran opened this issue Jun 20, 2023 · 0 comments · Fixed by #1181

Comments

@srikanth-sankaran
Copy link
Contributor

See

https://bugs.eclipse.org/bugs/show_bug.cgi?id=422489#c2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=422516 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=422134 for some background on

org.eclipse.jdt.internal.compiler.ast.LambdaExpression.tagAsHavingIgnoredMandatoryErrors(int)

This routine is basically trying to offer a safety net in preventing us from entering the mine field of flow analysis in the presence of a lambda that didn't resolve properly.

But it could be causing some damage also: In

https://bugs.eclipse.org/bugs/show_bug.cgi?id=547231,

we run into an IProblem.ParameterMismatch and tag the lambda and all enclosing lambdas as having ignored mandatory errors preventing exception analysis and resulting in spurious unhandled exception errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant