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

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

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

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


Copy link

@aryeh-looker aryeh-looker commented May 22, 2018


  • jruby-
  • Mac OS X #10.13.3

Expected Behavior

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

Actual Behavior

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

@enebo 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.

Copy link

@headius headius commented May 23, 2018

JRuby 9.2 appears to match Ruby 2.5 behavior here.

@headius headius closed this May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.