Skip to content

dup on Range regression #3163

@etehtsea

Description

@etehtsea

JRuby 9k final:

>> Range.new(0, 1000).dup
NameError: `initialize' called twice
    from org/jruby/RubyRange.java:247:in `initialize_copy'
    from org/jruby/RubyKernel.java:1860:in `initialize_dup'
    from org/jruby/RubyKernel.java:1898:in `dup'

JRuby 1.7.20.1:

>> Range.new(0,1000).dup
=> 0..1000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions