Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24] JEP draft: Primitive Types in Patterns, instanceof, and switch (Second Preview) #2900

Open
Tracked by #2899
mpalat opened this issue Sep 4, 2024 · 0 comments
Open
Tracked by #2899
Assignees
Milestone

Comments

@mpalat
Copy link
Contributor

mpalat commented Sep 4, 2024

ref: https://openjdk.org/jeps/8335876

Summary
Enhance pattern matching by allowing primitive type patterns in all pattern contexts, and extend instanceof and switch to work with all primitive types. This is a preview language feature.
This feature was originally proposed by JEP 455, and delivered as a preview feature in JDK 23
and the JDT Core issue #2298

@mpalat mpalat added this to the BETA_JAVA24 milestone Sep 4, 2024
@mpalat mpalat changed the title JEP draft: Primitive Types in Patterns, instanceof, and switch (Second Preview) [24] JEP draft: Primitive Types in Patterns, instanceof, and switch (Second Preview) Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants