Giter Site home page Giter Site logo

Comments (7)

rzwitserloot avatar rzwitserloot commented on May 26, 2024 1

@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 :P).

@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!

from lombok.maven.

md-5 avatar md-5 commented on May 26, 2024

Arguably lombok should be calling LombokProcessor.addOpensForLombok() in the Delombok static initializer rather than main

from lombok.maven.

md-5 avatar md-5 commented on May 26, 2024

Opened PR to lombok

from lombok.maven.

awhitford avatar awhitford commented on May 26, 2024

When trying to compile with Java 16, this is what I get:

Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project lombok-maven-plugin: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x8cc5602) 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 @0x8cc5602 -> [Help 1]
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error:
Error: After correcting the problems, you can resume the build with the command
Error: mvn -rf :lombok-maven-plugin
Error: Process completed with exit code 1.

According to projectlombok/lombok#2681, it appears that a Java 16 compatible version of Lombok will be released soon.

from lombok.maven.

md-5 avatar md-5 commented on May 26, 2024

Legendary, thanks :)

Closing this as the new lombok version should not need any changes to the Maven plugin

from lombok.maven.

ginkel avatar ginkel commented on May 26, 2024

Please pardon my ignorance, but should this be working with the current Lombok edge release? If so, there still seems to be a bug somewhere:

[ERROR] Failed to execute goal org.projectlombok:lombok-maven-plugin:1.18.18.0:delombok (delombok) on project *REDACTED*: Execution delombok 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 @0x34d480b9) 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 @0x34d480b9
[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/tg/.m2/repository/org/projectlombok/lombok-maven-plugin/1.18.18.0/lombok-maven-plugin-1.18.18.0.jar
[ERROR] urls[1] = file:/home/tg/.m2/repository/org/projectlombok/lombok/edge-SNAPSHOT/lombok-edge-SNAPSHOT.jar
[ERROR] urls[2] = file:/home/tg/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
[ERROR] urls[3] = file:/home/tg/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[4] = file:/home/tg/.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]]
[ERROR] 
[ERROR] -----------------------------------------------------

Thanks,
Thilo

from lombok.maven.

awhitford avatar awhitford commented on May 26, 2024

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

from lombok.maven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.