Skip to content

List.of seem broken while using jdk 17 #2812

Open
@jkone27

Description

@jkone27

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions