Changeset 19043 in josm


Ignore:
Timestamp:
2024-04-18T23:20:21+02:00 (3 weeks ago)
Author:
stoecker
Message:

drop COMPAT locale provider

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r19040 r19043  
    463463                        <jvmarg value="${jacocoagent@{testfamily}@{testITsuffix}}" if:set="jacocoagent@{testfamily}@{testITsuffix}" />
    464464                        <jvmarg value="-Dfile.encoding=UTF-8"/>
    465                         <jvmarg value="-Djava.locale.providers=SPI,JRE,CLDR" if:set="isJava9" />
     465                        <jvmarg value="-Djava.locale.providers=SPI,CLDR" />
    466466                        <jvmarg value="-Djava.security.manager=allow" if:set="isJava17" />
    467467                        <jvmarg value="-javaagent:${test.dir}/lib/jmockit.jar"/>
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r18510 r19043  
    378378    static String setupJavaLocaleProviders() {
    379379        // Look up SPI providers first (for JosmDecimalFormatSymbolsProvider).
    380         // Enable CLDR locale provider on Java 8 to get additional languages, such as Khmer.
    381         // https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr
    382         // FIXME: This must be updated after we switch to Java 9.
    383         // See https://docs.oracle.com/javase/9/docs/api/java/util/spi/LocaleServiceProvider.html
    384380        try {
    385381            try {
     
    388384                I18n.class.getResourceAsStream("/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider").close();
    389385                // Don't call Utils.updateSystemProperty to avoid spurious log at startup
    390                 return System.setProperty("java.locale.providers", "SPI,JRE,CLDR");
     386                return System.setProperty("java.locale.providers", "SPI,CLDR");
    391387            } catch (RuntimeException | IOException e) {
    392388                // Don't call Logging class, it may not be fully initialized yet
     
    398394        }
    399395        try {
    400             return System.setProperty("java.locale.providers", "JRE,CLDR");
     396            return System.setProperty("java.locale.providers", "CLDR");
    401397        } catch (SecurityException e) {
    402398            // Don't call Logging class, it may not be fully initialized yet
Note: See TracChangeset for help on using the changeset viewer.