Core Java

JDK 14: Records, Text Blocks, and More

Today’s Mark Reinhold post “JEPs proposed to target JDK 14: 305, 343, 359, 366, & 368” proposes targeting five more JEPs to JDK 14. Some highly anticipated features are among this group, although all but one are proposed to be in “preview” or “incubating”:

  • JEP 305: Pattern Matching for instanceof (Preview)
  • JEP 343: Packaging Tool (Incubator)
  • JEP 359: Records (Preview)
  • JEP 366: Deprecate the ParallelScavenge + SerialOld GC Combination
  • JEP 368: Text Blocks (Second Preview)

The Java SE 13 Java Language Updates document describes preview features (JEP 12): “A preview feature is a new feature whose design, specification, and implementation are complete, but which is not permanent, which means that the feature may exist in a different form or not at all in future JDK releases.”

JEP 11 (“Incubator Modules”) describes “incubator modules” as “a means of putting non-final APIs and non-final tools in the hands of developers, while the APIs/tools progress towards either finalization or removal in a future release.”

Four of the five JEPs proposed today for targeting JDK 14 are “preview” or “incubator” and so will be subject to potentially “not exist …. at all in future JDK releases” or potential “removal in a future release.” However, the opportunity to take these features for a spin is welcome and there seems likely that these features will eventually become permanent even if they have some modifications. We could have these JEPs officially targeted for JDK 14 by Thanksgiving!

Additional Resources

Published on Java Code Geeks with permission by Dustin Marx, partner at our JCG program. See the original article here: JDK 14: Records, Text Blocks, and More

Opinions expressed by Java Code Geeks contributors are their own.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button