Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'defined?' for constant should not invoke auto-load #2382

Closed
headius opened this issue Dec 29, 2014 · 1 comment
Closed

'defined?' for constant should not invoke auto-load #2382

headius opened this issue Dec 29, 2014 · 1 comment

Comments

@headius
Copy link
Member

@headius headius commented Dec 29, 2014

From http://jira.codehaus.org/browse/JRUBY-5798

% 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
% 
@kares
Copy link
Member

@kares kares commented Feb 18, 2016

has been fixed for 9.0.5.0 ... const_defined? no longer triggers loading.

@kares kares closed this as completed Feb 18, 2016
@kares kares added this to the Invalid or Duplicate milestone Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants