Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Object.const_get behaves differently from other implementations #2635
This issue is a result from an error i encountered when adding kramdown to my rails app using JRuby 22.214.171.124-pre1 -> gettalong/kramdown#228
irb(main):001:0> Object.const_get('::String') String
this works this way on the C-implementations.
Currently on JRuby 126.96.36.199-pre1
irb(main):001:0> Object.const_get('::String') NameError: wrong constant name ::String from org/jruby/RubyModule.java:2863:in `const_get