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