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
Closed

Object.const_get behaves differently from other implementations #2635

commel opened this issue Mar 1, 2015 · 4 comments

Comments

@commel
Copy link

commel 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
Copy link
Member

headius commented Mar 12, 2015

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

@arlandism
Copy link
Contributor

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

@nirvdrum
Copy link
Contributor

This sounds oddly similar to #2090.

@kares
Copy link
Member

kares commented Apr 16, 2015

#2739 is now on master

@kares kares closed this as completed 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
Projects
None yet
Development

No branches or pull requests

5 participants