Can we get an upgrade to openjdk 25.
Hey @base58ed, absolutely! Weâll start working on the upgrade and keep you posted once itâs ready.
Thank you for a prompt response. Please keep the âenable-preview switch for extra fun.
@base58ed Iâve updated the Java version to 25 for the DNS server challenge.
Youâll also need to upgrade the buildpack version in your repo to match.
Let me know if you run into any issues!
Thanks @andy1li. I have two follow-ups:
-
I tried preview features (for example switch pattern on primitive types) but got an exception:
[your_program] Exception in thread âmainâ java.lang.UnsupportedClassVersionError: Preview features are not enabled for DNSServer (class file version 69.65535). Try running with ââenable-previewâ
I think with the build pack you have to enable the preview (--enable-preview) as well. Can you do that please? -
Can you do the same thing for all other challenges or would I have to create separate tickets for each challenge?
@base58ed Youâll also need to add the flag in your .codecrafters/run.sh file:
Yes, all challenges support Java 25 now.
Fantastic. Thank you so much.
