-
-
Notifications
You must be signed in to change notification settings - Fork 62
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.lang.ExceptionInInitializerError when Run mill __.compile
with Java 21
#153
Comments
This is probably related to twirl not building on JDK 21. You could try:
|
I tried twirl version 1.6.7, the problem is the same. |
Hmm, maybe the 2.x series work? https://github.com/playframework/twirl/releases/tag/2.0.7 If they don't then I think we should seriously consider dropping the twirl example, since it blocks a java 21 build, which is required for virtual thread support (#125) |
There are more errors when compiling with Java 21, I think we need first make the project compiles successfully with Java 21. |
It appears that it actually wasn't twirl that was preventing a build under jdk 21. Upgrading the various scala patch versions seems to fix it. I've tested this manually on my machine. In the future, it could be interesting to also include a CI workflow that uses jdk 21. Fixes #153
Java version: java 21.0.5 2024-10-15 LTS
Platform : Macbook m3
when run
mill __.compile
I get:The text was updated successfully, but these errors were encountered: