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
Describe the bug
When you use Java 14 records and also the configuration that every field is default private you can't compile the code. Cause the Intellij build process aborts with this error java: @FieldDefaults is only supported on a class or an enum.
To Reproduce
lombok.config with: lombok.fieldDefaults.defaultPrivate=true
a record with: public record SomeRecord(String identifier) {}
javac -cp lombok-1.18.22.jar SomeRecord.java
Result:
SomeRecord.java:6: error: @FieldDefaults is only supported on a class or an enum.
public record SomeRecord(String identifier) {
^
1 error
Expected behavior
It should compile :)
Version info (please complete the following information):
Describe the bug
When you use Java 14 records and also the configuration that every field is default private you can't compile the code. Cause the Intellij build process aborts with this error
java: @FieldDefaults is only supported on a class or an enum.
To Reproduce
lombok.config with:
lombok.fieldDefaults.defaultPrivate=true
a record with:
public record SomeRecord(String identifier) {}
javac -cp lombok-1.18.22.jar SomeRecord.java
Result:
Expected behavior
It should compile :)
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: