[1.8.7] SecureRandom crashes, fails new rubyspecs
-------------------------------------------------
Key: JRUBY-2590
URL: http://jira.codehaus.org/browse/JRUBY-2590
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.2
Environment: Latest JRuby 1.1.2
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
Fix For: JRuby 1.1.3
SecureRandom is coming out with MRI 1.8.7 soon, and JRuby's implementation is
incomplete, crashes on some parameters and not fully compatible with MRI.
New specs have just been added by me to rubyspec project. JRuby fails some of
them, crashes on some others.
*NOTE*: Since this is 1.8.7 level feature, these specs won't run in JRuby by
default,
you have to adjust the jruby.properties so that JRuby would look like 1.8.7
level implementation to the rubyspecs.
{noformat}
mspec -t j 1.8/library/securerandom/
.....Exception in thread "main" java.lang.NegativeArraySizeException
at java.lang.reflect.Array.multiNewArray(Native Method)
at java.lang.reflect.Array.newInstance(Array.java:108)
at org.jruby.javasupport.JavaClass.new_array(JavaClass.java:1466)
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email