You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
@RequiredArgsConstructor annotation generates a constructor that accepts parameters for all non-initialized members. Lombok plugin mistakenly recognizes fields with @Builder.Default annotation as initialized. From lombok-generated constructor's perspective, the @Builder.Default annotation invalidates inline initializations. IDEA 'Structure' pane shows constructor with missing parameters. Code relying on this 'false' constructor shows no errors. However, any code relying on the phantom constructor won't compile from javac.exe.
Expected behavior
IDEA should interpret class structure in the same way that compiler does.
Version information
IDEA Version:Build #IU-222.4459.24, built on November 22, 2022
JDK Version:openjdk version "17.0.2" 2022-01-18
OS Type & Version:Windows 11
Lombok Plugin Version:222.4459.24
Lombok Dependency Version:1.18.24
Steps to reproduce
What steps do we need to take to reproduce this issue?
[ERROR] Foo.java:[10,29] constructor Foo in class Foo cannot be applied to given types;
[ERROR] required: java.lang.String,java.lang.String
[ERROR] found: java.lang.String
[ERROR] reason: actual and formal argument lists differ in length
The text was updated successfully, but these errors were encountered:
Short description
@RequiredArgsConstructor
annotation generates a constructor that accepts parameters for all non-initialized members. Lombok plugin mistakenly recognizes fields with@Builder.Default
annotation as initialized. From lombok-generated constructor's perspective, the@Builder.Default
annotation invalidates inline initializations. IDEA 'Structure' pane shows constructor with missing parameters. Code relying on this 'false' constructor shows no errors. However, any code relying on the phantom constructor won't compile from javac.exe.Expected behavior
IDEA should interpret class structure in the same way that compiler does.
Version information
Steps to reproduce
What steps do we need to take to reproduce this issue?
The text was updated successfully, but these errors were encountered: