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

true.dup and false.dup blow up (Inconsistent with MRI) #5184

Closed
aryeh-looker opened this issue May 22, 2018 · 2 comments
Closed

true.dup and false.dup blow up (Inconsistent with MRI) #5184

aryeh-looker opened this issue May 22, 2018 · 2 comments

Comments

@aryeh-looker
Copy link
Contributor

aryeh-looker commented May 22, 2018

Environment

  • jruby-9.1.17.0
  • Mac OS X #10.13.3

Expected Behavior

# MRI 2.5.1
2.5.1 :002 > true.dup == true
 => true 

Actual Behavior

jruby-9.1.17.0 :001 > true.dup == true
TypeError: can't dup TrueClass
	from org/jruby/RubyKernel.java:1906:in `dup'
	from (irb):1:in `<eval>'
	from org/jruby/RubyKernel.java:995:in `eval'
	from org/jruby/RubyKernel.java:1316:in `loop'
	from org/jruby/RubyKernel.java:1138:in `catch'
	from org/jruby/RubyKernel.java:1138:in `catch'
	from /Users/user/.rvm/rubies/jruby-9.1.17.0/bin/irb:13:in `<main>'
@enebo enebo added this to the JRuby 9.2.0.0 milestone May 22, 2018
@enebo enebo added the ruby 2.5 label May 22, 2018
@enebo
Copy link
Member

enebo commented May 22, 2018

Ruby 2.3.x displays the error reported so JRuby 9.1.x does not have this issue. Upcoming JRuby 9.2.x will support 2.5.x so it is affected.

@headius
Copy link
Member

headius commented May 23, 2018

JRuby 9.2 appears to match Ruby 2.5 behavior here.

@headius headius closed this as completed May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants