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

Lazily instantiate SunJCE.RANDOM

    XMLWordPrintable

Details

    Description

      Currently the SunJCE provider instantiates a SecureRandom object during static initialization which is subsequently used for cryptographic operations.

      We are exploring loading JCE providers with ServiceLoader for the eventual transition to modules in JDK 9. This can cause potential recursive loading issues if the Sun provider has not been loaded yet (since the providers are loaded in no specific order using ServiceLoader). The fix is to lazily instantiate SunJCE.RANDOM.

      This is a proactive fix that will smooth the transition to modules.

      Attachments

        Activity

          People

            mullan Sean Mullan
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: