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 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 headius commented Mar 12, 2015

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

@arlandism
Copy link
Contributor

@arlandism arlandism commented Mar 20, 2015

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

@nirvdrum
Copy link
Contributor

@nirvdrum nirvdrum commented Mar 30, 2015

This sounds oddly similar to #2090.

@kares
Copy link
Member

@kares kares 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants