New candidate JEP: 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)

Mark Reinhold mark.reinhold at oracle.com
Mon Sep 30 20:03:36 UTC 2024


https://openjdk.org/jeps/488

  Summary: Enhance pattern matching by allowing primitive types in all
  pattern contexts, and extend instanceof and switch to work with all
  primitive types.  This is a preview language feature.

- Mark


More information about the jdk-dev mailing list