Behavior change in default locale data

The Unicode Consortium's Common Locale Data Repository (CLDR) is enabled as the default locale data in Java 11. In previous releases, the default was JRE, which is now known as COMPAT. Code that uses locale-sensitive services such as date, time, and number formatting may produce different results with the CLDR locale data.

This rule flags references to the following locale-sensitive classes:

To enable behavior compatible with Java 8, set the system property java.locale.providers to a value with COMPAT ahead of CLDR like the following: java.locale.providers=COMPAT,CLDR

For more information, see the Use CLDR Locale Data by Default and CLDR Locale Data Enabled by Default documentation.