Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.7
    • Fix Version/s: JRuby 1.7.0.pre2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      on Ruby 1.9:

      $ irb
      1.9.3-p194 :001 > (1.0..2.0).min
      => 1.0

      On JRuby:

      $ irb
      jruby-1.6.7.2 :002 > (1.0..2.0).min
      TypeError: can't iterate from Float
      from org/jruby/RubyRange.java:411:in `each'
      from org/jruby/RubyEnumerable.java:1103:in `min'
      from (irb):2:in `evaluate'
      from org/jruby/RubyKernel.java:1083:in `eval'
      from /home/tallakt/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:158:in `eval_input'
      from /home/tallakt/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:271:in `signal_status'
      from /home/tallakt/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:155:in `eval_input'
      from org/jruby/RubyKernel.java:1410:in `loop'
      from org/jruby/RubyKernel.java:1183:in `catch'
      from /home/tallakt/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:154:in `eval_input'
      from /home/tallakt/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:71:in `start'
      from org/jruby/RubyKernel.java:1183:in `catch'
      from /home/tallakt/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:70:in `start'
      from /home/tallakt/.rvm/rubies/jruby-1.6.7.2/bin/irb:17:in `(root)'

        Activity

        Hide
        Charles Oliver Nutter added a comment -

        I believe this was fixed in 1.7.0.pre2.

        Show
        Charles Oliver Nutter added a comment - I believe this was fixed in 1.7.0.pre2.

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Tallak Tveide
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: