Skip to content

Add linking classes for JEP 358 and JEP 368 in Java 14 #321

@Abhineshhh

Description

@Abhineshhh

Description

Add linking classes in Java 14 for JEP 358 (Helpful NullPointerExceptions) and JEP 368 (Text Blocks - Second Preview) that point to their respective finalized demos in Java 17.

Details

Currently, Java 14 has demos for:

  • JEP 305 (Pattern Matching for instanceof - Preview)
  • JEP 359 (Records - Preview)
  • JEP 361 (Switch Expressions)
  • JEP 370 (Foreign-Memory Access API - Incubator)

However, two important Java 14 features are missing linking classes:

  1. JEP 358 - Helpful NullPointerExceptions

    • Finalized demo exists in java17/nullpointer/NullPointerDemo.java
    • Need to create linking class in java14/jep358/
  2. JEP 368 - Text Blocks (Second Preview)

    • Finalized demo exists in java17/textblock/TextBlockDemo.java
    • Need to create linking class in java14/jep368/

Tasks

  • Create java14/jep358/HelpfulNullPointerExceptionsPreview.java (linking class)
  • Create java14/jep368/TextBlocksSecondPreview.java (linking class)
  • Update JDK14Info.json with entries for JEP 358 and 368
  • Register both demos in Java14DemoLoader.java
  • Ensure code compiles and runs without errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions