Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7199750

Loading sequence of service provider is changed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b66
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: