Open dstibbe opened 3 years ago
Hi, my additional observations.
Source
public record Foo(String name, @With int size) {}
compiles, but IntelliJ IDE warns
Wither needs constructor for all fields
If I add @AllArgsConstructor
, the warning is gone.
Nonetheless, IntelliJ IDE won't recognize the generated Foo.withSize(int size)
method. Maven build succeeds without problems though.
Lombok version: 1.18.22 Platform: Corretto-17.0.2.8.1 (build 17.0.2+8-LTS) Plugin version: 213.6777.52
IMHO, @With
annotation is a perfect companion for the Java record types - yet another example of lombok providing the essential missing piece of functionality that really should be part of Java language.
Short description
I have a java16 record with an
@With
annotation. When trying to use any of the generatedwith...()
methods, the plugin tells me they don't exist, even though it compiles just fine.Expected behavior
The plugin should show me the
withLength(...)
method exists. Instead it tells me it doesn't.Steps to reproduce
It will indicate that
withLength
doesn't exist.Sample project
see code above
Version information
Additional information
-
Stacktrace
-