Skip to content

Exception when comparing Time with nil using === #1606

Closed
joelnordell opened this Issue Apr 2, 2014 · 0 comments

2 participants

@joelnordell

In MRI ruby 1.9.3:

1.9.3p327 :001 > Time.new === nil
 => false 

In JRuby 1.7.10:

jruby-1.7.10 :001 > Time.new === nil
TypeError: no implicit conversion from nil to integer
    from org/jruby/RubyTime.java:608:in `==='
    from (irb):1:in `evaluate'
    from org/jruby/RubyKernel.java:1119:in `eval'
    from org/jruby/RubyKernel.java:1519:in `loop'
    from org/jruby/RubyKernel.java:1282:in `catch'
    from org/jruby/RubyKernel.java:1282:in `catch'
    from ~/.rvm/rubies/jruby-1.7.10/bin/irb:13:in `(root)'
@enebo enebo closed this in 7190dcb Apr 2, 2014
@enebo enebo added this to the JRuby 1.7.12 milestone Apr 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.