question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not support Java 16 even when running lombok that does

See original GitHub issue

Lombok added support for Java 16 here: https://github.com/rzwitserloot/lombok/commit/9806e5cca4b449159ad0509dafde81951b8a8523

Even manually adding this version as a depend to the Maven plugin however suffers from the same issue prior to that lombok commit.

[ERROR] Failed to execute goal org.projectlombok:lombok-maven-plugin:1.18.18.0:delombok (default) on project bungeecord-chat: Execution default of goal org.projectlombok:lombok-maven-plugin:1.18.18.0:delombok failed: An API incompatibility was encountered while executing org.projectlombok:lombok-maven-plugin:1.18.18.0:delombok: java.lang.IllegalAccessError: class lombok.delombok.Delombok (in unnamed module @0x1aed255e) cannot access class com.sun.tools.javac.tree.JCTree$JCCompilationUnit (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x1aed255e
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.projectlombok:lombok-maven-plugin:1.18.18.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/user/.m2/repository/org/projectlombok/lombok-maven-plugin/1.18.18.0/lombok-maven-plugin-1.18.18.0.jar
[ERROR] urls[1] = file:/home/user/.m2/repository/org/projectlombok/lombok/edge-SNAPSHOT/lombok-edge-SNAPSHOT.jar
[ERROR] urls[2] = file:/home/user/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
[ERROR] urls[3] = file:/home/user/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[4] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rzwitserlootcommented, Mar 21, 2021

@md-5 report an error and then go dig in the jdk16 update to find the culprit? Three cheers to you!

Yup, I’ll integrate this. I’m now happy we didn’t get around to releasing 1.18.20 on thursday, I’ll make sure this fix will make it (via your PR probably 😛).

@awhitford - yeah, the edge build already has it, though with an annoyance as md-5 pointed out which I will fix soon. Relase 1.18.20 is imminent. If you can find your way to keep an eye out for a new release this week, that’d be great!

0reactions
awhitfordcommented, Mar 21, 2021

@ginkel We are waiting on a fresh Lombok release that supports Java 16. It sounds like it is imminent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lombok's access to jdk.compiler's internal packages ...
Lombok v1.18.20 supports JDK 16 out of the box. ... If you don't know what that is you can run this command to...
Read more >
[FEATURE] Make Lombok compatible with JDK 16 · Issue #2681
After JDK 16 has started the rampdown phase, we could not get Lombok working any more. The exception reported by Maven compiler is:...
Read more >
Lombok Changelog
IMPROBABLE BREAKING CHANGE: Running java -jar lombok.jar config -v <files> no longer shows which files do not mention the specified keys. Use --non-mentioned...
Read more >
I am facing build error - Atlassian Community
P.S: I tried changing my Lombok dependency to 1.18.20 in my pom.xml, still am facing the above issue . The application is running...
Read more >
Lombok plugin doesn't take into account add-opens added in ...
Have a project with JDK 16ea and lombok 1.18.18; Add add-opens for lombok: ... (in module jdk.compiler) because module jdk.compiler does not export ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found