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
Describe the bug Demo repo
The repository contains code generated by jOOQ. It compiles successfully before adding Lombok. After adding Lombok, the annotations are not recognized, resulting in a compilation error. Adding org.jetbrains:annotations as a dependency resolves the issue.
To Reproduce Demo repo
Run ./gradlew compileJava. The following compilation errors occur:
> Compilation failed; see the compiler output below.
error: cannot access ApiStatus
class file for org.jetbrains.annotations.ApiStatus not found
/home/xiaojian-wang/lombok-jooq-bug-demo/src/main/java/com/example/DemoApplication.java:21: error: cannot find symbol
log.info("Person ${}", Person.builder().name("John").build().getName());
^
symbol: method builder()
location: class Person
/home/xiaojian-wang/lombok-jooq-bug-demo/src/main/java/com/example/DemoApplication.java:21: error: cannot find symbol
log.info("Person ${}", Person.builder().name("John").build().getName());
^
symbol: variable log
location: class DemoApplication
3 errors
Adding org.jetbrains:annotations as a dependency fixes the compilation. However, before Lombok is added, the project compiles without needing org.jetbrains:annotations.
Expected behavior
Adding Lombok should not introduce new dependencies that are otherwise not required.
Version info (please complete the following information):
Lombok version: 1.18.36
Platform: Java, Gradle, Ubuntu latest
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
Demo repo
The repository contains code generated by jOOQ. It compiles successfully before adding Lombok. After adding Lombok, the annotations are not recognized, resulting in a compilation error. Adding
org.jetbrains:annotations
as a dependency resolves the issue.To Reproduce
Demo repo
Run
./gradlew compileJava
. The following compilation errors occur:Adding
org.jetbrains:annotations
as a dependency fixes the compilation. However, before Lombok is added, the project compiles without needingorg.jetbrains:annotations
.Expected behavior
Adding Lombok should not introduce new dependencies that are otherwise not required.
Version info (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: