Open Community Experience (OCX)

Primitives in patterns - Providing foundational changes to next-gen Java types

45:46 · 21 Apr 2026 – 23 Apr 2026 · YouTube

About this talk

This talk, presented by Manoj Nalledathu Palat from IBM, focuses on the introduction of primitives in pattern matching as a preview feature in Java 26. It delves into how Java is evolving to minimize the differences between primitive and reference types, discussing modifications to constructs such as instanceof and switch to accommodate primitive types while ensuring compatibility with existing Java and JVM specifications. The speaker explains the shift towards conversion checks for primitives, addressing compile-time versus runtime evaluation, and how these changes affect bytecode generation. Additionally, the session covers the implementation of primitive support without altering JVM instructions and the potential impacts on pattern matching with records and floating-point equivalence.