The ongoing introduction of pattern matching to Java has put more weight on some language features than on others and unbalanced the language. In Java 23, primitive patterns will fix this regarding primitive types in `instanceof` and `switch`. This episode also goes over other upcoming patterns (deconstruction, static, instance, and constant) and shows how they will build out pattern matching in Java. JEP 455: https://openjdk.org/jeps/455 Project Amber documents: https://openjdk.org/projects/amber/#documents Download JDK 23 EA: https://jdk.java.net/23/ ~~~ Chapters ~~~ 0:00 Intro 1:02 Existing Patterns 1:23 Type Patterns 1:32 Guarded Patterns 1:53 Record Patterns 2:09 Unnamed Patterns 2:29 Nested Patterns 2:50 Summary of Existing Patterns 3:38 Primitive Patterns in `instanceof` 5:17 Primitive Patterns in `switch` 6:30 Primitive Patterns when Nested 7:33 Upcoming Patterns 7:59 Deconstruction Patterns 8:40 Static Patterns 9:09 Instance Patterns 9:54 Constant Patterns 10:37 Try JDK 23 EA! Tags: #Java #Java23 #OpenJDK #PatternMatching