question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to build with Java 16

See original GitHub issue

Current 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:open
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
elucashcommented, Apr 22, 2021

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?

0reactions
nezdacommented, Aug 11, 2021

Pretty sure I at least tried to try that but I’ll try it again tomorrow.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found