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

Loading sequence of service provider is changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • b66
    • generic
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: