Loading sequence of service provider is changed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • b66
    • generic
    • generic
    • Verified

      Beginning from Java 8 b55, when there are mutiple provider-configuration files with same name, the sequence of loading the service provider is changed.

      For exmaple,
      pseudolocales1.jar and pseudolocales2.jar are all in the java extension directory.

      pseudolocales1/META-INF/services/java.util.spi.CurrencyNameProvider points to CurrencyNameProviderImpl1
      pseudolocales2/META-INF/services/java.util.spi.CurrencyNameProvider points to CurrencyNameProviderImpl2

      Before 8 b55, for example, in 8 b54, JRE loads CurrencyNameProviderImpl1 first and then CurrencyNameProviderImpl2, but from 8 b55, CurrencyNameProviderImpl2 is loaded first.

            Assignee:
            Naoto Sato
            Reporter:
            Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: