Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JRuby 9k double loading file if explicit require and autoload are used
autoload :ProxyObject, 'proxy_object.rb'
require 'proxy_object'
$ jruby double_load.rb
NameError: Undefined method == for class 'ProxyObject'
undef_method at org/jruby/
(root) at /home/bbrowning/tmp/jruby9kdoubleload/proxy_object.rb:2
(root) at /home/bbrowning/.rbenv/versions/jruby-
require at org/jruby/
require at /home/bbrowning/.rbenv/versions/jruby-
__script__ at double_load.rb:2
class ProxyObject < ::BasicObject
undef_method :==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment