redhat-developer / redhat-developer/vscode-java

List.of seem broken while using jdk 17

Aperta
#2,812 23 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@snjeza ci sta già lavorando.

Dal 29/11/2022.

compile Maven
Lingua principale
TypeScript
Stelle
2.3k
Fork
546
Merge medio
20h 1m
PR unite (30g)
11

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.