Class HiddenClassesNotes

java.lang.Object
net.jrodolfo.java_evolution.java15.HiddenClassesNotes

public class HiddenClassesNotes extends Object
Explains hidden classes, introduced in Java 15.

Before hidden classes, framework-generated implementation classes were more discoverable and name-addressable than they often needed to be. That was a poor fit for runtime-generated implementation details used by proxies, expression engines, and language runtimes.

Hidden classes solve this by supporting dynamically generated classes that are not intended to be found by normal name lookup. A full demonstration usually requires bytecode generation, so this repository keeps the example explanatory.

  • Constructor Details

    • HiddenClassesNotes

      public HiddenClassesNotes()
  • Method Details

    • purpose

      public String purpose()
      Describes the purpose of hidden classes.
      Returns:
      a short explanation
    • primaryApi

      public String primaryApi()
      Names the primary API used to define hidden classes.
      Returns:
      the API name
    • projectDecision

      public String projectDecision()
      Explains why this repository does not generate bytecode for the example.
      Returns:
      the project decision