-
Notifications
You must be signed in to change notification settings - Fork 125
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
Error in JDT Core during AST creation due to spurious recovery of String template expression by DiagnoseParser #1734
Comments
Interesting. The parse tree for the method comes out to be:
See the "" at the end of the return statement inside the lambda! Basically we have parsed a string template expression where none existed. I suspect DiagnoseParser's black magic having a finger in the pie |
Yep. DiagnoseParser inserts a We may want to steer the DiagnoseParser from inserting |
Latest build of Eclipse (I20240205-1800) does not throw anymore and shows
when hovering the last
This is better (as it does not hard-fail the build) but not at all what this code is about. Content assist also suggests |
aa1a02d fixed the errors appearing in the Error Log view and I would consider this issue fixed. |
... or wait until they drop String Templates at all from the JDK. With that feature removed the error message is back to
which is the expected error message from before. I'll close this, thanks to all the people involved. |
With the following code three messages in the Error Log View pop up
It also messes with postfix completions on the trailing
.
after theget()
call:System information
Eclipse SDK
Version: 2024-03 (4.31)
Build id: I20231207-1800
openjdk 21 2023-09-19 LTS
OpenJDK Runtime Environment Temurin-21+35 (build 21+35-LTS)
OpenJDK 64-Bit Server VM Temurin-21+35 (build 21+35-LTS, mixed mode, sharing)
The text was updated successfully, but these errors were encountered: