-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor #2790
Comments
Issue resolved due to build platform including incorrect image. |
Hi, I'm using Java 16 and Spring Boot 2.4.4 and still getting the error. Is there anything I could do? I was earlier running same code on Java 11 and it worked fine. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project ybl-oastatusreport-spring-boot: Fatal |
This should work if you use lombok 1.18.20 |
can you tell us why this occur |
JDK 16 uses strong encapsulation by default. Lombok have to use compiler internal classes to modify things during compilation. Since 1.18.20 lombok uses a workaround/hack to still access these classes but this most likely will not be possible anymore in future versions (it still works fine in JDK17). As soon as this happens you have to add a bunch of additional |
I have a problem I worked with java 8 and lombok 1.18.10 cannot compile but when I updated the version it worked well but I don't have access to change the version in the remote repo so do you know an alternative solution? |
or why lombok 1.18.10 gives fatal compilation error |
@mariiamamr There is no solution. Upgrade lombok or downgrade java. |
Okay will do that, thanks for the clarification.
…On Wed, 15 Sep 2021 at 9:53 AM Reinier Zwitserloot ***@***.***> wrote:
@mariiamamr <https://github.com/mariiamamr> There is no solution. Upgrade
lombok or downgrade java.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2790 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOSAT2LFCRAKLWFHXOPVHOLUCBGIHANCNFSM4ZYBFE2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Issue during Java build using JDK 14 and Lombok 1.18.18:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project a-service: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x363d3958) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x363d395**
?
The text was updated successfully, but these errors were encountered: