-
Notifications
You must be signed in to change notification settings - Fork 122
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
ECJ accepts invalid syntax without error #367
Milestone
Comments
Looks like https://bugs.eclipse.org/bugs/show_bug.cgi?id=553601 When addressing this issue, we should also add the test case from the other bug. |
srikanth-sankaran
added a commit
to srikanth-sankaran/eclipse.jdt.core
that referenced
this issue
May 11, 2023
The well intentioned suppression of the user non-actionable message "Syntax error, insert ElidedSemicolonAndRightBrace to complete LambdaBody" sometimes backfires - For example, when it is the ONLY syntax error reported by DiagnoseParser. Rather than completely suppress this message, surface a more general syntax error if there are no other syntax errors Fixes: eclipse-jdt#367
srikanth-sankaran
added a commit
that referenced
this issue
May 11, 2023
The well intentioned suppression of the user non-actionable message "Syntax error, insert ElidedSemicolonAndRightBrace to complete LambdaBody" sometimes backfires - For example, when it is the ONLY syntax error reported by DiagnoseParser. Rather than completely suppress this message, surface a more general syntax error if there are no other syntax errors Fixes: #367
subyssurendran666
pushed a commit
to subyssurendran666/eclipse.jdt.core
that referenced
this issue
Jul 18, 2023
The well intentioned suppression of the user non-actionable message "Syntax error, insert ElidedSemicolonAndRightBrace to complete LambdaBody" sometimes backfires - For example, when it is the ONLY syntax error reported by DiagnoseParser. Rather than completely suppress this message, surface a more general syntax error if there are no other syntax errors Fixes: eclipse-jdt#367
robstryker
pushed a commit
to robstryker/eclipse.jdt.core
that referenced
this issue
Jul 18, 2024
The well intentioned suppression of the user non-actionable message "Syntax error, insert ElidedSemicolonAndRightBrace to complete LambdaBody" sometimes backfires - For example, when it is the ONLY syntax error reported by DiagnoseParser. Rather than completely suppress this message, surface a more general syntax error if there are no other syntax errors Fixes: eclipse-jdt#367
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following Java code is accepted without errors by eclipse:
which is compiled in the following byte code:
which is also incorrect.
Note how only the first line of the source code has been compiled, despite having debug information for the rest.
It seems like a very corner case but it could lead to very sneaky and hard to find bugs.
The text was updated successfully, but these errors were encountered: