Hexadecimal constants do not have the same equal? behaviour between JRuby and 
CRuby
-----------------------------------------------------------------------------------

                 Key: JRUBY-3591
                 URL: http://jira.codehaus.org/browse/JRUBY-3591
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.8.7
    Affects Versions: JRuby 1.2, JRuby 1.1.5
         Environment: JRuby 1.1.5, 1.2.0, Windows XP
Ruby 1.8.7 patchlevel 71 compiled for Ubuntu (i686-linux)
            Reporter: Robert Rees
            Priority: Minor


In IRB on Ruby 1.8.7 the expression

0x5A4A.equal?(0x5A4A) returns true.

On JRuby IRB it returns false.

My expectation is that hex constants are the same object and in JRuby 

0x5A4A == 0x5A4A

does return true.

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