gptkbp:instance_of
|
gptkb:Java_Enhancement_Proposal
|
gptkbp:author
|
gptkb:Javac_Team
|
gptkbp:benefits
|
Reduces boilerplate code.
|
gptkbp:created
|
2019-09-17
|
gptkbp:discusses
|
https://mail.openjdk.java.net/pipermail/amber-spec-experts/2020-December/000123.html
https://openjdk.java.net/jeps/295
|
gptkbp:ends_at
|
2021-03-16
|
gptkbp:example
|
if (obj instanceof String s) { ... }
|
gptkbp:features
|
gptkb:JEP_394
Language Feature
|
gptkbp:has_documentation
|
https://docs.oracle.com/javase/specs/jls/se16/html/jls-14.html
|
https://www.w3.org/2000/01/rdf-schema#label
|
JEP 295
|
gptkbp:impact
|
Simplifies the common coding pattern of type checking and casting.
|
gptkbp:is_compatible_with
|
Backward compatible
|
gptkbp:is_described_as
|
Enhances the instanceof operator to allow pattern matching.
|
gptkbp:is_essential_for
|
gptkb:P2
|
gptkbp:is_implemented_in
|
gptkb:JDK_16
Completed
https://github.com/openjdk/jdk/pull/1234
|
gptkbp:is_open_source
|
gptkb:Java_SE_16
|
gptkbp:is_reviewed_by
|
Approved
|
gptkbp:is_tested_for
|
Tested
|
gptkbp:keywords
|
pattern matching, instanceof
|
gptkbp:language
|
Pattern Matching
|
gptkbp:notable_achievement
|
JDK 16 Release
|
gptkbp:notable_recipients
|
JDK Contributors
|
gptkbp:proposed_by
|
gptkb:Javac_Team
2019-09-17
|
gptkbp:related_jeps
|
gptkb:JEP_344
|
gptkbp:release_date
|
March 2021
|
gptkbp:released
|
gptkb:Java_16
gptkb:Java_SE_16
|
gptkbp:specifies
|
gptkb:Java_Language_Specification
|
gptkbp:status
|
gptkb:Final
|
gptkbp:targets
|
gptkb:16
gptkb:Java_SE_16
|
gptkbp:title
|
gptkb:Pattern_Matching_for_instanceof
|
gptkbp:updates
|
2021-03-16
|
gptkbp:user_reviews
|
gptkb:Gilad_Bracha
gptkb:Brian_Goetz
gptkb:Venkat_Subramaniam
gptkb:Alex_Buckley
gptkb:Josh_Bloch
gptkb:Mark_Reinhold
gptkb:Maurizio_Cimadamore
2021-02-01
2020-12-15
JDK Community
|
gptkbp:uses
|
Type checking and casting in Java.
|
gptkbp:bfsParent
|
gptkb:JEP_411
|
gptkbp:bfsLayer
|
4
|