Jeff Solomon created JRUBY-6570:
-----------------------------------
Summary: autoload :Time, 'time' doesn't work
Key: JRUBY-6570
URL: https://jira.codehaus.org/browse/JRUBY-6570
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.7
Environment: Windows 7
Reporter: Jeff Solomon
Assignee: Thomas E Enebo
Attachments: time_autoload_bug.rb
Kernel.autoload doesn't seem to work with the Time class, while Module.autoload
does work.
% jruby -v
jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) Client VM
1.6.0_17) [Windows 7-x86-java]
Run the following script:
autoload :Bar, 'bar'
puts autoload?(:Bar)
autoload :Time, 'time'
puts autoload?(:Time)
module Foo
end
Foo.autoload :Time, 'time'
puts Foo.autoload?(:Time)
I see the following output:
bar
nil
time
when I would expect to see the following:
bar
time
time
Unit test file attached to demonstrate the bug.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email