Skip to content

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

@aryeh-looker

Description

@aryeh-looker

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>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions