-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
1.16.22 constructor has private access #1704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This could be related to the first feature in changelog: https://projectlombok.org/changelog |
Related to Issue #1703 |
Adding |
If can also put a @NoArgsConstructor
@Data
public class Foo {
} |
holy。。。。 |
I have two
@Data
beans in a parent/child relationship. The parent relies on@Data
to generate the required constructor. The child declares its own constructor and calls super. When I compile, I get an error in the Child.Error:(6, 1) java: Base() has private access in com.example.Base
This is new in 1.16.22.
I can work around it if I declare a no-arg constructor in the base class manually and add
@RequiredArgsConstructor
, but this is ugly because I have to come up with defaults for the final fields.The text was updated successfully, but these errors were encountered: