@FieldNameConstants Incompatability with lombok 1.18.4
See original GitHub issueShort description
1.18.4 introduced a breaking change for @FieldNameConstants. Generated fields are no longer prefix + fieldName + suffix and instead are generated as just fieldName inside an inner type.
After delombok i am seeing
public static final String nullFIELDnull = "field";
Expected behavior
Generated strings should belong in inner type as
public final class Fields{ public static final String FIELD = "field"; }
See unit test from lombok repo. Before: https://github.com/rzwitserloot/lombok/blob/3d432c38d0cfeb36b8e7402eca56faaafcf7bac7/test/transform/resource/before/FieldNameConstantsBasic.java
Version information
-
IDEA Version: Build #IU-182.4892.20, built on October 16, 2018
-
JDK Version: JRE: 1.8.0_152-release-1248-b19 amd64
-
OS Type & Version: Windows 7 6.1 *
-
Lombok Plugin Version: 0.22.2018.2
-
Lombok Dependency Version: 1.18.4
Steps to reproduce
What steps do we need to take to reproduce this issue?
Simply use @FieldNameConstants with latest version of lombok.
Sample project
Additional information
Stacktrace
Issue Analytics
- State:
- Created 5 years ago
- Reactions:22
- Comments:24 (2 by maintainers)
Top GitHub Comments
@vrosenshtein: this change will be available in the next release of plugin (version 0.24)
I would appreciate know the release date please 😃