Class StrongEncapsulationNotes

java.lang.Object
net.jrodolfo.java_evolution.java17.StrongEncapsulationNotes

public class StrongEncapsulationNotes extends Object
Explains strong encapsulation of JDK internals in Java 17.

Before Java 17, some applications and libraries reached into internal JDK packages through reflection or unsupported APIs. That made upgrades fragile because those internals were not stable public contracts.

Java 17 strongly encapsulated internal JDK APIs by default. This matters for libraries that previously depended on unsupported internal packages and pushes code toward supported public APIs.

  • Constructor Details

    • StrongEncapsulationNotes

      public StrongEncapsulationNotes()
  • Method Details

    • impact

      public String impact()
      Explains the practical impact.
      Returns:
      a short explanation
    • migrationAdvice

      public String migrationAdvice()
      Names the migration pressure this change created.
      Returns:
      a short migration note
    • projectDecision

      public String projectDecision()
      Explains why this feature is represented as notes.
      Returns:
      the project decision