Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 17 Support #311

Closed
jabrena opened this issue Nov 21, 2021 · 6 comments
Closed

Java 17 Support #311

jabrena opened this issue Nov 21, 2021 · 6 comments

Comments

@jabrena
Copy link

jabrena commented Nov 21, 2021

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!
com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: java.lang.ExceptionInInitializerError
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(ContextMapGeneratorExampleTest.java:20)
Caused by: com.google.inject.internal.util.$ComputationException: java.lang.ExceptionInInitializerError
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(ContextMapGeneratorExampleTest.java:20)
Caused by: java.lang.ExceptionInInitializerError
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(ContextMapGeneratorExampleTest.java:20)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @1e7ba8d9
        at org.contextmapper.standalone.example.ContextMapGeneratorExampleTest.test(ContextMapGeneratorExampleTest.java:20)

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.

@stefan-ka
Copy link
Member

Hi @jabrena

Thank you very much for reporting this one and sorry for the late response!

Unfortunately, we depend on Xtext regarding this matter, as our language (CML) is built with Xtext. As for now, Xtext still does not support Java 17. But they work on it: eclipse-xtext/xtext#1982
From these release notes, I infer that they plan to release 2.26.0 in January 2022. This release should then support Java 17 or at least allow us to run Xtext-based applications on a Java 17 runtime.

Sorry that I don't have better news regarding this matter. For now, users have to run Context Mapper with Java 11.

Best regards,
Stefan

FYI @socadk

@smsnheck
Copy link

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.

Best

@stefan-ka
Copy link
Member

Hi @smsnheck

Thanks for your message. Nice to hear that you are waiting for it; as probably many others :)

There were still some things to do and prepare; and since I am doing this besides my job in projects, I don't have that much time per week to work on Context Mapper.

Hovewer, the release is planned for Friday ;) I hope that is okay for you and you can wait until then...

Best regards,
Stefan

@smsnheck
Copy link

smsnheck commented Dec 1, 2022

Good morning @stefan-ka, great to hear that you are planning a release on friday :)
I appreciate you working on the tool during your free time.

FYI: I am integrating your tool in my arc42-architecture documentation archetype. Therefore I can wait some days.

@stefan-ka
Copy link
Member

@jabrena, @smsnheck, the release v6.7.0 of Context Mapper with Java 17 support is now available: https://contextmapper.org/news/2022/12/02/v6.7.0-released/
I will therefore close this issue. If you have any questions, feel free to contact me.

@jabrena
Copy link
Author

jabrena commented Dec 2, 2022

Many thanks @stefan-ka,

I will review the tool again in coming weeks.

Have a good weekend

Juan Antonio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants