A comprehensive walkthrough of Java pattern matching features covering pattern matching for instanceof, switch expressions with type patterns, record deconstruction patterns, guarded patterns, pattern dominance rules, unnamed pattern variables, and the newer (preview) primitive type patterns introduced in JDK23. The talk traces the evolution from JDK12 onwards, explains scoping rules for pattern variables, exhaustiveness requirements for switch expressions, and highlights known bugs in primitive pattern matching when combined with reference wrapper types.

45m watch time

Sort: