Class ModuleImportDeclarationsSecondPreviewNotes

java.lang.Object
net.jrodolfo.java_evolution.java24.module_import_declarations.ModuleImportDeclarationsSecondPreviewNotes

public class ModuleImportDeclarationsSecondPreviewNotes extends Object
Explains module import declarations second preview in Java 24.

Module import declarations let source code import public top-level types from packages exported by a named module. Java 24 kept the feature in preview before finalization in Java 25.

This repository keeps the Java 24 step as notes because the feature became final in Java 25, where the final notes explain the stable form.

  • Constructor Details

    • ModuleImportDeclarationsSecondPreviewNotes

      public ModuleImportDeclarationsSecondPreviewNotes()
  • Method Details

    • problemSolved

      public String problemSolved()
      Explains the import problem.
      Returns:
      a short explanation
    • olderImportModel

      public String olderImportModel()
      Explains the older import model.
      Returns:
      a short explanation
    • moduleImportModel

      public String moduleImportModel()
      Explains what a module import declaration makes available.
      Returns:
      a short semantic explanation
    • syntaxShape

      public String syntaxShape()
      Shows the declaration shape.
      Returns:
      sample module import declaration
    • previewStep

      public String previewStep()
      Explains why Java 24 keeps this entry as a bridge note.
      Returns:
      a short explanation
    • secondPreviewStatus

      public String secondPreviewStatus()
      Describes the Java 24 maturity level.
      Returns:
      a short status note
    • nextStep

      public String nextStep()
      Points learners to the final Java 25 notes.
      Returns:
      a short next-step note