wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
742 stars 721 forks source link

[Java 21 runtime] Java 21 runtime support for WSO2 Identity Server #21158

Open indeewari opened 2 hours ago

indeewari commented 2 hours ago

Describe the issue: The latest LTS release of Java; Java 21 was released on September 2023. As Identity Server is a downloadable product which will be used years after its releases, its important to plan for the latest LTS support for a upcoming release proactively.

This initiative aims to ensure compatibility with the Java 21 runtime for the IS product.

  1. Remove sun.java dependencies to ensure compatibility with the Java 21 LTS
  2. Third-party dependency upgrade related to sun.java dependencies
  3. ...
indeewari commented 2 hours ago
  1. Remove sun.java dependencies to ensure compatibility with the Java 21 LTS runtime.

With the introduction of Java 21 LTS, most of the sun.java classes and methods are no longer supported. These internal APIs were never intended for public use and have been strongly encapsulated since Java 9. Continuing to rely on them in Java 21 poses significant risks, including potential runtime failures and compatibility issues. Therefore, it's essential to refactor the codebase to replace sun.java dependencies with standard, supported Java APIs to ensure long-term stability and maintainability of the product.

Related PRs