Language selector

JEP 443

As I wrote in my previous post I had issues running code using JEP 443 using tools like Maven, Gradle or IntelliJ IDEA. Thanks to the one and only Tagir Valeev the solution is quite simple. Upgrade to JDK 21.0.1. And that’s it ;-) No need to touch anything else. If you fancy more explanation, please follow on this Twitter thread. And we shall all remember that upgrading is a good thing, because we’re not going to stay on Java 8 forever, right?
Update The issue has been solved, please go to the post with solution. Note: I’m leaving the original post below in case someone bumps to a similar issue in the future. Sometimes it’s easier to search using the problem ;-) While preparing my Deep Dive talk on Java 21 for friendly Java User Groups, I’ve noticed a curious case of JEP 443: Unnamed Patterns and Variables (Preview). I’ve managed to create a reproducer, so I’d like to share the findings here.

Language selector