redhat-developer / redhat-developer/vscode-java

List.of seem broken while using jdk 17

Open
#2,812 23 comments 0 reactions 1 assignee View on GitHub

@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
Screenshot 2022-11-22 at 12 52 16

    <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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.