Describe the bug
Building with JDK 14 shows the following error:
warning: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
Your processor is: org.gradle.api.internal.tasks.compile.processing.IncrementalProcessingEnvironment
Lombok supports: OpenJDK javac, ECJ
To Reproduce
gradlew bootRunExpected behavior
Build without errors.
Version info (please complete the following information):
Additional context
I have attached a demo project that reproduces the error in JDK 14 but not in JDK 11.
demo.zip
I can not reproduce the issue. I also tried different java versions, including the latest AdoptOpenJDK version and verified that lombok works by adding some annotations. Can you provide some more details for example a full log of the build or an docker image that can be used to reproduce it?
Disclaimer: I'm not a project owner.
@Rawi01 have you tried the attached demo project in the demo.zip file? I can reproduce it with this project.
@mschaaf Yes, I tried the demo project and also create a new project using Spring Initializr. I tried AdoptOpenJDK 14.0.1+7 and AdoptOpenJDK 14.0.2+12.
My steps to reproduce:
sdk install java 14.0.1.j9-adptsdk use java 14.0.1.j9-adpt./gradlew clean./gradlew bootRunOr with openjdk
sdk install java 14.0.2-opensdk use java 14.0.2-open./gradlew clean./gradlew bootRunI tried to run this in a new ubuntu docker container but it requires two changes:
14.0.1.j9-adpt is no longer available, I had to use 14.0.2.j9-adptchmod +x gradlew to run itAfter that both JDKs work without any problems.
I have exactly the same issue when using
building by IntelliJ or command line lead to the same error message:
> Task :compileJava FAILED
warning: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
Your processor is: org.gradle.api.internal.tasks.compile.processing.IncrementalProcessingEnvironment
Lombok supports: OpenJDK javac, ECJ
But I don't have any issue when using hotspot variant 14.0.2.j9-hs
I finally managed to reproduce this one in a docker container. On my normal machine the build crashes which is a OpenJ9 related bug and fixed in the latest edge version. Adding the edge version fixed both builds. Can you confirm that this solves the problem?
I can confirm that the edge version builds on AdoptOpenJDK 14.0.2 with the attached project.
Note that it happens to me with AdoptOpenJDK 11.0.8
I'm using IntellIJ 2020.3 EAP
java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
Your processor is: com.sun.proxy.$Proxy27
Lombok supports: OpenJDK javac, ECJ
And also with Maven 3.6.3, same JDK
Same problem
@doublefx IntelliJ issue is handled by #2592
Is it possible to close this as with the latest AdoptOpenJDK and version Lombok v1.18.16 this is fixed for me?
Thanks to @Rawi01 for doing a lot of the work on this one. The error has multiple causes; As per @mplushnikov 's suggestion, let's discuss the one caused by the Processor type being com.sun.proxy.$Proxy27 in issue #2592, and leave this one for the gradlew issue. We've fixed that in .16, and from what I read here, that fix is working. Let me know if 1.18.16 and/or edge causes this issue __and__ org.gradle.api.internal.tasks.compile.processing.IncrementalProcessingEnvironment is reported as the processor, so that I can re-open.
Most helpful comment
Note that it happens to me with AdoptOpenJDK 11.0.8
I'm using IntellIJ 2020.3 EAP
java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
Your processor is: com.sun.proxy.$Proxy27
Lombok supports: OpenJDK javac, ECJ
And also with Maven 3.6.3, same JDK