mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
[Fixes #1656] Lombok would silently do the wrong thing when using references to public static final String fields, instead of actual string literals, there where you can specify strings in lombok annotation parameters, such as @ToString(of = MyClass.CONSTANT_FIELD). We can’t really fix it, but at least now lombok will error when you do that and describe in detail what’s going wrong.
This commit is contained in:
1 parent
7e81ac6238
commit
f540335ef9
9 files changed
+87
-40
No files matched your search
@@ -0,0 +1 @@
|
||||
4 You must use constant literals in lombok annotations; they cannot be references to (static) fields.
|
||||
Reference in new issue
Block a user