redhat-developer / redhat-developer/vscode-java

Lombok @SuperBuilder annotation not supported by extension

Aperta
#2,819 3 commenti 9 reazioni 1 assegnatario Vedi su GitHub

@snjeza ci sta già lavorando.

Dal 29/11/2022.

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

Descrizione

Environment
  • Operating System: Microsoft Windows 11 Home 10.0.22621 N/A Build 22621 Ubuntu 20.04.4 LTS
  • JDK version: openjdk version "17.0.4" 2022-07-19 LTS
  • Visual Studio Code version: 1.73.1
  • Java extension version: v1.13.2022112903 (pre-release)
Steps To Reproduce
  1. Clone repo https://github.com/zymotik/redhat-developer-vscode-java-issue-2805
  2. Open in Visual Studio Code (with Java extension)
  3. Open src/main/java/com/virtualvenue/model/widget/ContentWidget.java and check line 33 is marked as valid
  4. Application builds without issue, the problem is only reported by the VSCode extension

Java Language Server workspace logs - SuperBuilder annotation error

Current Result

image

image

Duplicate type parameter CJava(536871432)
Bound mismatch: The type C is not a valid substitute for the bounded parameter <C extends ScheduledContentInstance> of the type ContentWidget<C>Java(16777742)
Bound mismatch: The type C is not a valid substitute for the bounded parameter <C extends ScheduledContentInstance> of the type ContentWidget.ContentWidgetBuilder<C,C,B>Java(16777742)
Bound mismatch: The type ContentWidget<C> is not a valid substitute for the bounded parameter <C extends ContentWidget<C>> of the type ContentWidget.ContentWidgetBuilder<C,C,B>Java(16777742)
Type mismatch: cannot convert from List<C> to Collection<? extends capture#1-of ?>Java(16777233)
The constructor ArrayList<C>(ArrayList<capture#1-of ?>) is undefinedJava(134217858)
The method unmodifiableList(List<? extends T>) in the type Collections is not applicable for the arguments (ArrayList<C>)Java(67108979)

Expected Result

No errors reported in VSCode

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.