-
Notifications
You must be signed in to change notification settings - Fork 117
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
CCE: LocalDeclaration cannot be cast to class ForeachStatement #1263
Labels
bug
Something isn't working
Comments
Likely a duplicate of #1195 See #1195 (comment) for a growing list of duplicates. It matches the scenario that the concerned method uses pattern matching instanceof expression. |
This was referenced Sep 5, 2023
Here is a simple extract from the concerned file:
|
srikanth-sankaran
added a commit
to srikanth-sankaran/eclipse.jdt.core
that referenced
this issue
Sep 12, 2023
Duplicate of #1195 |
srikanth-sankaran
added a commit
to srikanth-sankaran/eclipse.jdt.core
that referenced
this issue
Sep 12, 2023
srikanth-sankaran
added a commit
to srikanth-sankaran/eclipse.jdt.core
that referenced
this issue
Sep 14, 2023
srikanth-sankaran
added a commit
that referenced
this issue
Sep 14, 2023
This is a substantial reimplementation of the code selection support for pattern matching constructs. By using auxiliary stacks to record the state of the parser and by using that state to drive the bottom up context recovery and parse tree construction, we now rebuild the parse tree to sufficient detail to ascertain liveness of pattern binding variables at the point of selection. Fixes #1195 Fixes #769 Fixes #1263 Fixes #1360 Fixes #1364 Fixes #1278 Fixes #1288 Verifies https://bugs.eclipse.org/bugs/show_bug.cgi?id=573257 Verifies https://bugs.eclipse.org/bugs/show_bug.cgi?id=572975 Verifies https://bugs.eclipse.org/bugs/show_bug.cgi?id=576794
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using latest build I20230802-1800.
Open
org.eclipse.jdt.internal.launching.DetectVMInstallationsJob
class in the IDE.Hold "Ctrl" and hover over the "arrows" in lambda expressions in the
run()
method.Exception reported:
The text was updated successfully, but these errors were encountered: