JDK-8305487 : Release Note: Emit Warning for Removal of `COMPAT` Provider
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • OS: generic
  • CPU: generic
  • Submitted: 2023-04-03
  • Updated: 2023-08-14
  • Resolved: 2023-04-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21Resolved
Description
Users now see a warning message if they specify either `COMPAT` or `JRE` locale data with the `java.locale.providers` system property and call some locale-sensitive operations. `COMPAT` was provided for migration to the `CLDR` locale data at the time of JDK 9, where it became the default locale data ([JEP 252](https://openjdk.org/jeps/252)). JDK 21 retains the legacy locale data of JDK 8 for compatibility, but some of the newer functionalities are not applied. The legacy locale data will be removed in a future release. Users are encouraged to migrate to the `CLDR` locale data.