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

Make ThreadLocalRandom more robust against static initialization cycles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • core-libs
    • None

      ThreadLocalRandom (and SplittableRandom) are at risk of invoking themselves recursively in their <clinit>, which could result in disaster. Defend against future possibility of that by only invoking "foreign" code in <clinit> when recursive invocation is safe.

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: