You can clone with
HTTPS or Subversion.
On JRuby 1.7.4 defined? reports that BasicObject is undefined in 1.9 mode.
jruby-1.7.4 :018 > defined? ::BasicObject
jruby-1.7.4 :019 > BasicObject
Yet it is defined and usable... Curiously when execing the same code from -e it works...
~$ ruby -v
jruby 1.7.4 (1.9.3p392) 2013-05-16
~$ ruby -e 'p defined?(::BasicObject)'
jruby-1.7.4 > defined?(::BasicObject)
JRuby 1.7.4 in 1.9 mode is falsely reporting defined?(::BasicObject) …
…=> nil see jruby/jruby#814
Seems to only be broken in interpreter. Compiler is ok:
ext-jruby-local ~/projects/jruby $ jruby -X-C -e "p defined?(::BasicObject)"
ext-jruby-local ~/projects/jruby $ jruby -X+C -e "p defined?(::BasicObject)"
Use same logic in compiler and interpreter for defined?(Colon2).
Maybe, but this crops up for example, when running rspec tests (where this bug was discovered)
Thanks for looking at this @headius, does this mean it's fixed? Will it go out in the next release? (1.7.5?)
Yup, fixed and in 1.7.5. Thanks for the report!