Array#pack + "U" + negative value should raise an RangeError
------------------------------------------------------------

                 Key: JRUBY-1899
                 URL: http://jira.codehaus.org/browse/JRUBY-1899
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1b1
         Environment: OS X, ruby 1.8.6 (2008-01-05 rev 5468) [i386-jruby1.1b1]
            Reporter: Daniel Berger
            Priority: Minor


Hi,

These should cause a RangeError:

{noformat}
[-1].pack("U")
[-5].pack("U")
{noformat}
In JRuby the first example returns "\377" and the second example causes a Java 
ValueException.

-- 
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

Reply via email to