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
fails to compile, as lombok's builder code generates a private constructor, and the XArgsConstructor code generates a public one. 2 identical explicit constructors, thus, compiler error.
Expected behavior
The noArgsConstructor should 'win' - the builder code needs to not just check for explicitly written constructors in the class, it also needs to check for XArgsConstructor annotations. Alternatively, the ordering should be adjusted so that the XArgsConstructor processor always runs first, which probably solves all problems just the same.
Describe the bug
This code:
fails to compile, as lombok's builder code generates a private constructor, and the XArgsConstructor code generates a public one. 2 identical explicit constructors, thus, compiler error.
Expected behavior
The noArgsConstructor should 'win' - the builder code needs to not just check for explicitly written constructors in the class, it also needs to check for XArgsConstructor annotations. Alternatively, the ordering should be adjusted so that the XArgsConstructor processor always runs first, which probably solves all problems just the same.
Related issue: Issue #2768
The text was updated successfully, but these errors were encountered: