-
Notifications
You must be signed in to change notification settings - Fork 143
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
NPE during code completion of var'ed variable #495
Comments
Error is reproducible with the latest JDT I-Build (3.18.1400.v20221025-1800).
The weird thing is I don't see the error with the same code in JDT.LS |
It's reproducible in JDT-LS. I needed to disable lombok support to get the stack trace : stacktrace
|
Forgot to mention the most fun part, i.e. removing the |
Can reproduce. current stacktrace:
according to |
In Eclipse 2022-09, org.eclipse.jdt.feature.group 3.18.1300.v20220831-1800, on a Java 18 project, code completion fails with an error popup at
o.|
in the following snippet:If you replace
var o = Optional.of(c);
withOptional<String> o = Optional.of(c);
, completion works without errors.For context, I was trying to look into code completion failure reported in vscode-java (powered by JDT.LS), that might or might not be related.
The text was updated successfully, but these errors were encountered: