A small side note on JEPs 384 and 359
When reading about records and having read
Pattern Matching for Java, Gavin Bierman and Brian Goetz, September 2018,
it would be easy to assume that pattern matching in instanceof
would also include deconstruction patterns.
This isn’t a preview feature in Java 14 which included records via JEP 359, but was slated for Java 15 with JEP 384.
Unfortunately, this JEP has changed and deconstruction patterns are no longer planned for that JEP.
Records will be re-previewed as-is.