New candidate JEP: 507: Primitive Types in Patterns, instanceof, and switch (Third Preview)

Mark Reinhold mark.reinhold at oracle.com
Mon Apr 14 20:02:27 UTC 2025


https://openjdk.org/jeps/507

  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 amber-dev mailing list