Skip to content

Object.const_get behaves differently from other implementations #2635

@commel

Description

@commel

This issue is a result from an error i encountered when adding kramdown to my rails app using JRuby 9.0.0.0-pre1 -> gettalong/kramdown#228

Expected behavior:

irb(main):001:0> Object.const_get('::String')
String

this works this way on the C-implementations.

Currently on JRuby 9.0.0.0-pre1

irb(main):001:0> Object.const_get('::String')
NameError: wrong constant name ::String
    from org/jruby/RubyModule.java:2863:in `const_get

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions