Skip to content

jdk17 not supported? It causes java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class #107

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

Open
Torxed opened this issue Nov 28, 2024 · 2 comments

Comments

@Torxed
Copy link

Torxed commented Nov 28, 2024

I'm not a Java expert, but it appears that this project does not support anything above JDK11.

This is an issue since JDK11 appears to be end of life October 2024 (1 month ago).

Is there a status on when we can expect newer Java versions to work?
Or perhaps there's workarounds? Or maybe I've misunderstood the issue?

It feels like a patch to add --add-opens java.base/java.lang=ALL-UNNAMED as recommended in general Java practice on other online resources.

@h-mdm
Copy link
Owner

h-mdm commented Dec 2, 2024

I was unable to reproduce your issue.

I installed JDK 17:

apt install openjdk-17-jdk openjdk-17-jre

The Java version is 17:

java -version

openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment (build 17.0.13+11-Ubuntu-2ubuntu122.04)
OpenJDK 64-Bit Server VM (build 17.0.13+11-Ubuntu-2ubuntu122.04, mixed mode, sharing)

The Headwind MDM project was both built and run on Tomcat successfully.

mvn clean install

...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:01 min
[INFO] Finished at: 2024-12-02T08:26:34Z
[INFO] ------------------------------------------------------------------------

Please provide more details on the conditions when you got this issue, and the stack trace of the error.

Anyway, that's great if your patch resolves the issue. But please provide more details where to add the line you provided, this helps other users if they get a similar issue.

@Torxed
Copy link
Author

Torxed commented Dec 5, 2024

I'll generate a docker-compose.yaml in a day or so to reproduce this.
Apologies for the delay, but I'm pretty swamped so it will take a bit of time to sort out the reproducibility.

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