Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
2 participants
@joelnordell
Copy link

joelnordell commented Apr 2, 2014

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 added a commit that referenced this issue 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
You can’t perform that action at this time.