Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.10.1
-
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
- https://github.com/apache/maven-compiler-plugin/pull/122
- https://github.com/apache/maven-compiler-plugin/pull/139
but with no JIRA reference. PR 122 can be selected as fixed in then.
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
- is related to
-
MCOMPILER-516 upgrade plexus compiler: display compiler key options and relative path
- Closed