You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/05/08 08:47:37 UTC

DO NOT REPLY [Bug 19756] New: - java.lang.ExceptionInInitializerError thrown by JVMRandom constructor

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19756>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19756

java.lang.ExceptionInInitializerError thrown by JVMRandom constructor

           Summary: java.lang.ExceptionInInitializerError thrown by
                    JVMRandom constructor
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: phil@steitz.com


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org