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
[BUG] Non-copyable type parameter annotations are copied #3460
Comments
Please check if this might be a duplicate or related to #3180, which should already be resolved in the most current version of lombok. |
According to this: it should have been fixed in 1.18.28. If not: Did you try the edge-version? And maybe this has some interesting info, too: #3150 |
Just tested it again in 1.18.28 and confirmed that it's not fixed. I didn't test it in the edge-version because https://projectlombok.org/download-edge states that "no edge build has been released since the last stable release of lombok". Is there another download link for the edge-version, or there is indeed no edge-version at the moment? |
Interesting, maybe it's because the type annotation is put on the generic type parameter. It might be Lombok doesn't do any further checks on type annotations in generic type parameters. @Rawi01, @rzwitserloot: what do you say? |
If I leave out the list or place
It seems so. |
Describe the bug
When a type parameter of a field is annotated with a non-copyable annotation, the annotation is copied to the getter, setter, constructor and "$default$" method.
To Reproduce
Compile the following source file with
javac -cp lombok-1.18.28.jar:validation-api-2.0.1.Final.jar Example.java
:Expected behavior
The
javax.validation.constraints.NotNull
annotation is not copied.Version info (please complete the following information):
Additional context
Delomboked source:
The text was updated successfully, but these errors were encountered: