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

Remove the usage of ServiceLoader in j.u.r.RandomGeneratorFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 17
    • core-libs
    • None
    • b24

      While RandomGeneratorFactory makes internal use of ServiceLoader, there was never an intent to allow non-platform implementations of j.u.r.RandomGenerator to participate in the discovery and lookup as exposed by RandomGeneratorFactory.all(), RandomGeneratorFactory.of() and RandomGenerator.of().

      The internal usage of ServiceLoader has some unintended drawbacks (JDK-8331223). To overcome them, the implementation can be simplified by removing ServiceLoader from RandomGeneratorFactory.

      Also see JDK-8330005 for preliminary work.

            rgiulietti Raffaello Giulietti
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: