Primitive Patterns are out of JDK 28
the Amber spec leads (Angelos Bimpoudis, Gavin Bierman) announced the withdrawal of the preview feature for primitive types in patterns, instanceof and switch. Tools are already reacting, e.g. JaCoCo is dropping its related test. https://mail.openjdk.org/archives/list/amber-spec-experts@openjdk.org/thread/UYEK3PGOHN6R56AHJTSLPGAY363K666S/