'defined?' for constant should not invoke auto-load
---------------------------------------------------
Key: JRUBY-5798
URL: http://jira.codehaus.org/browse/JRUBY-5798
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.1
Environment: jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (Java
HotSpot(TM) 64-Bit Server VM 1.7.0-ea) [linux-amd64-java]
Reporter: Hiroshi Nakamura
{noformat}
% ruby192 -e 'autoload :Foo, "nosuchfile"; p defined? Foo'
"constant"
% ruby187 -e 'autoload :Foo, "nosuchfile"; p defined? Foo'
"constant"
% jruby161 -e 'autoload :Foo, "nosuchfile"; p defined? Foo'
LoadError: no such file to load -- nosuchfile
(root) at -e:1
%
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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