NumberFormatException in Array#pack('w')
----------------------------------------
Key: JRUBY-2826
URL: http://jira.codehaus.org/browse/JRUBY-2826
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.2
Environment: Windows XP, JRuby 1.1.3, Java 1.6
Reporter: Daniel Berger
Two Array#pack failures from ruby_test:
{noformat}
assert_raises(TypeError){ [nil].pack("w") }
assert_raises(TypeError){ ['a'].pack("w") }
{noformat}
Both raise a TypeError in MRI. In JRuby 1.1.3 the first returns "\000", while
the second causes a NumberFormatException.
--
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