Comparison of Fixnum with Array failed
--------------------------------------

                 Key: JRUBY-5701
                 URL: http://jira.codehaus.org/browse/JRUBY-5701
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6
         Environment: Mac OS X 10.6.7

Darwin peregrine 10.7.0 Darwin Kernel Version 10.7.0: 
root:xnu-1504.9.37~1/RELEASE_I386 i386

            Reporter: Nels Nelson


Example script is here:
https://gist.github.com/905896


# Expected behavior follows:

$ ruby --version
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ ruby ./overridden_fixnum_less_than.rb 
2.in? [ 1, 3, 5, 2, 7 ] # => true
Determining membership of 2 in [1, 3, 5, 2, 7]...
2 < [ 1, 3, 5, 2, 7 ] # => true
Determining membership of 2 in 3...
The given other is not a list.  Invoking super...
2 < 3 # => true


# Failure exhibit:

$ jruby --version
jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15 f3b6154) (Java HotSpot(TM) 
64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
$ jruby ./overridden_fixnum_less_than.rb 
2.in? [ 1, 3, 5, 2, 7 ] # => true
ArgumentError: comparison of Fixnum with Array failed
       < at org/jruby/RubyFixnum.java:879
  (root) at ./overridden_fixnum_less_than.rb:31


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