Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-90

[lang] java.lang.ExceptionInInitializerError thrown by JVMRandom constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • None
    • None
    • Operating System: other
      Platform: Other

    • 19756

    Description

      Somehow setSeed is getting called during construction, causing an
      UnsupportedOperationException.

      Attached patch fixes this as well as errors in nextInt() and nextLong() which
      cause them to always return 0 values.

      I am also attaching unit tests that show these errors and also cover the other
      methods in the RandomUtils class.

      Attachments

        Activity

          People

            Unassigned Unassigned
            phil@steitz.com Phil Steitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: