Uploaded image for project: 'Build'
  1. Build
  2. BUILD-319

Lombok 1.16.18 hinders compilation with Java 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Projects which are using Lombok org.projectlombok:lombok:jar:1.16.18 cannot be build with Java 10. (I have not tried it out with Java 9).
      It fails with this exception:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project magnolia-privacy-cookie-manager: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags
      

      The issue is known and already tackled and solved by lombock, see java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags #1651.

      Upgrading to lombok 1.18.0 seems to resolve the problem (only partially)?
      At least the privacy modules (which are the ones where I have found the issue) can be build with org.projectlombok:lombok:jar:1.18.0

      mvn clean install -DskipTests -Dcheckstyle.skip=true -Dcargo.maven.skip

      is successful, the modules can be built.

      However, a build attempt which includes the tests still fails. See error log on gist.
      I have not further investigated the reason for this failure.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                cmeier Christoph Meier
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: