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

Object.const_get behaves differently from other implementations #2635

Closed
commel opened this Issue Mar 1, 2015 · 4 comments

Comments

Projects
None yet
5 participants
@commel
Copy link

commented Mar 1, 2015

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
@headius

This comment has been minimized.

Copy link
Member

commented Mar 12, 2015

Weird...I thought for sure we fixed this.

@arlandism

This comment has been minimized.

Copy link
Contributor

commented Mar 20, 2015

I think I found the problem here. I'll have a patch ready soon.

@nirvdrum

This comment has been minimized.

Copy link
Contributor

commented Mar 30, 2015

This sounds oddly similar to #2090.

@kares

This comment has been minimized.

Copy link
Member

commented Apr 16, 2015

#2739 is now on master

@kares kares closed this Apr 16, 2015

@kares kares added this to the 9.0.0.0.pre2 milestone Apr 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.