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.

Is your feature request related to a problem? Please describe.

I would like to use this library with Java 17

Currently, If I try to execute the examples with Java 17, I receive the following error:

[ERROR] org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test  Time elapsed: 0.677 s  <<< ERROR!$ComputationException:$ComputationException: java.lang.ExceptionInInitializerError
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(
Caused by:$ComputationException: java.lang.ExceptionInInitializerError
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(
Caused by: java.lang.ExceptionInInitializerError
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int, throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @1e7ba8d9
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(

Describe the solution you’d like A clear and concise description of what you want to happen.

The library need to be compatible with Java 17 and Upgrade the pipelines for that JVM version.

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered.

Additional context Add any other context or screenshots about the feature request here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

stefan-kacommented, Dec 2, 2022

@jabrena, @smsnheck, the release v6.7.0 of Context Mapper with Java 17 support is now available: I will therefore close this issue. If you have any questions, feel free to contact me.

smsnheckcommented, Nov 30, 2022

Hi @stefan-ka correct me if I am wrong but 7 days ago the java 17 build ran successfully. When will the 6.7.0 version be released (and integrated in the CLI)?

I am very interested in a java 17 version with the new xtext version. If I can help you out please give me a hint.


Read more comments on GitHub >

github_iconTop Results From Across the Web

Oracle Java SE Support Roadmap
Oracle provides this Oracle Java SE Support Roadmap, to help you understand maintenance and support options and related timelines.
Read more >
Java/OpenJDK -
Release Released Active Support 19 2 months and 4 weeks ago. (20 Sep 2022) Ends in 3 months. (21 Mar 2023) 18 9 months ago....
Read more >
Java version history - Wikipedia
Java 7 is no longer publicly supported. For Java 11, long-term support will not be provided by Oracle for the public; instead, the...
Read more >
Java 17, the Next Long-Term Support Release, is Now Available
Oracle has released version 17 of the Java programming language and virtual machine. As the first long-term support release since JDK 11 in ......
Read more >
OpenJDK Life Cycle and Support Policy - Red Hat Customer ...
OpenJDK is the Java Development Kit (JDK) and Java Runtime Environment ... three months apart, for the OpenJDK 8, 11, and 17 distributions....
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 Post

No results found

github_iconTop Related Hashnode Post

No results found