Fails to build with Java 16
See original GitHub issueCurrent master
branch (bef39826f631a62550b0e0f6c504c4fd90b62995) mvn clean install
fails. Snippet of the failure output:
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ generator-processor ---
[INFO] Compiling 1 source file to /Users/nezda/code/immutables/generator-processor/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.immutables.generator.processor.Processor could not be instantiated
[INFO] 1 error
jdk - openjdk version "16" 2021-03-16
mvn - Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Once this is resolved can add it to the test matrix https://github.com/immutables/immutables/blob/master/.github/workflows/ci.yml#L16
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Error (Java SE 16 & JDK 16) - Oracle Help Center
An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors...
Read more >Error: Support for running under Java 16 requires Gradle 7 ...
For IntelliJ, run the genIntellijRuns gradle task (gradlew genIntellijRuns). And this what i have: FAILURE: Build failed with an exception. * ...
Read more >How to Fix UnsupportedClassVersion Error in Java - Rollbar
The UnsupportedClassVersionError in Java occurs when the JVM attempts to read a malformed or otherwise erroneous class file.
Read more >Fixing Unsupported major.minor version 52.0 Error in Java
Simplest way to fix this error is install the latest Java release i.e. Java 8 and run your program. If upgrading to Java...
Read more >Building the JDK - OpenJDK
If configure fails due to missing dependencies (to either the toolchain, build tools, external libraries or the boot JDK), most of the time...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for the investigation, that is exactly (and to my horror) what’s needed! The relatively good thing is that it affects only compiling under java16, not running resulting Immutables annotation processor. (only generator-generator processor…). The bad thing is that there were no plans to modernize these templating related stuff any time soon. I have a parser generator of my own in immutables/io, but had no plans to get to using it here. Maybe I’ll get to patching
org.parboiled.transform.AsmUtils.
if it is possible to avoid using that protected method. Is there any way to suppress java module system stuff at maven build time?Pretty sure I at least tried to try that but I’ll try it again tomorrow.