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

Does Serenity BDD support the latest Java 21 version? #146

Open
baskarcsb opened this issue May 28, 2024 · 2 comments
Open

Does Serenity BDD support the latest Java 21 version? #146

baskarcsb opened this issue May 28, 2024 · 2 comments

Comments

@baskarcsb
Copy link

baskarcsb commented May 28, 2024

if anyone tried, please provide the configuration steps

@wakaleo
Copy link
Member

wakaleo commented May 28, 2024

Yes it does, there is no special configuration, just the standard Maven or Gradle setup

@baskarcsb
Copy link
Author

Hello Wakaleo, we are currently using the <serenity.version>2.0.91</serenity.version> with Java 1.8. However, due to organizational constraints, we would like to upgrade to a higher version of Java, specifically Java 21. Will this version of Serenity support Java 21, or do we need a different Serenity version?

Just for your information: I encountered the following error when using the 2.0.91 version with Java 21.

INFO: An exception was caught and reported. Message: 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 @4c39f513
java.lang.IllegalStateException: Unable to load cache item
at com.google.inject.internal.cglib.core.internal.$LoadingCache.createEntry(LoadingCache.java:79)
at com.google.inject.internal.cglib.core.internal.$LoadingCache.get(LoadingCache.java:34)
at com.google.inject.internal.cglib.core.$AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)

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

No branches or pull requests

2 participants