Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-513

Error cross-compiling (JDK 18+ to release 17-) source with lint warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.10.1
    • 3.11.0
    • None

    Description

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  2.865 s
      [INFO] Finished at: 2022-11-30T16:32:53Z
      [INFO] ------------------------------------------------------------------------
      Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project mcp-OOS-bad-class: Fatal error compiling: bad class file: /BCDEFGH/java.base/java/io/ObjectOutputStream.sig
      Error:    unable to access file: java.nio.file.ClosedFileSystemException
      

      This sounds a bit like MCOMPILER-450 (for the ClosedFileSystemException), but there is no reproducer there so it's hard to tell. The comment suggests to me that it's not related, b/c the bug described here needs no modules.

      Reproducer for the case: https://github.com/pzrep/mcp-OOS-bad-class

      The key change, that fixes this is https://github.com/codehaus-plexus/plexus-compiler/pull/204.

      PC in MCOMPILER was updated in

      Yes, it's fixed already, but I'm reporting this for inclusion in RN.

      Workaround until new MCOMPILER release: override plexus-compiler dependencies to at least 2.12.0.

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              pzygielo Piotr Zygielo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: