redhat-developer / redhat-developer/vscode-java
List.of seem broken while using jdk 17
Open
@snjeza is already working on this.
Since Nov 29, 2022.
compile
Maven
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
i am using vscode with redhat extension and azul sdk 17

<properties>
<java.version>17</java.version>
<application.name>${project.artifactId}</application.name>
</properties>
The method of() is undefined for the type List
The method of(String[]) is undefined for the type List
maven runs file, wheras vscode tells me
List.of
is not defined as well as
var
is reported as object (but that could be related to the first issue...
running commands from command line on mvn or from mvn extension all works fine, in the extension both test extension and intellisense/error reporting are wrong (seems they fetch an older java version??)
cheers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.