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
{{ message }}
Repository navigation
Lombok false positive: MissingOverride for "@EqualsAndHashCode(callSuper = true)" when extending base class #1481
I'm compiling my Java 11 Spring Boot program with Error Prone and get a false positive on MissingOverride in a class that has the Lombok annotation @EqualsAndHashCode(callSuper = true) and extends another class.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
[...]/src/main/java/com/betterprojectsfaster/test/errorprone/lombokErrorProne/issues/missingoverride/IssueShowCase.java:8: warning: [MissingOverride] canEqual overrides method in Base; expected @Override
@EqualsAndHashCode(callSuper = true)
^
(see https://errorprone.info/bugpattern/MissingOverride)
Did you mean '@Override @EqualsAndHashCode(callSuper = true)'?
What version of Error Prone are you using?
Here's my my environment:
macOS Catalina 10.15.2
Gradle 5.6.4
AdoptOpenJDK Eclipse OpenJ9 11.0.5
Lombok 1.18.10
Error Prone Gradle plug-in 1.1.1
Error Prone 2.3.4
Have you found anything relevant by searching the web?
Didn't find anything relevant in the mailing list. Here are related Lombox issues:
#1479: Lombok - MultiVariableDeclaration: IllegalArgumentException "Start [449] should not be after end [-1]" (Preconditions.java:300)
#1430:
IllegalArgumentException from AlmostJavadoc pattern on project using lombok
Reacted by Richard Gomez, Anton Lavrenov, Yesid Bocanegra, chris-orchard and Eddie Xie
Please re-open this or file a new bug if you're still seeing issues with Lombok and Error Prone 2.13.0 when -XepDisableWarningsInGeneratedCode is enabled.
Activity
updating to motherpom and Spring 2.4.4 which seems to be the next rel…
cushon commentedon Apr 14, 2022
Please re-open this or file a new bug if you're still seeing issues with Lombok and Error Prone 2.13.0 when
-XepDisableWarningsInGeneratedCodeis enabled.