defined? CONST is not following proper constant lookup rules
------------------------------------------------------------
Key: JRUBY-3397
URL: http://jira.codehaus.org/browse/JRUBY-3397
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.6
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.2
See this:
{noformat}
[headius @ cnutter:~/projects/jruby]
$ jruby -e "module Foo; Bar = 1; end; include Foo; module Baz; p defined? Bar;
end"
nil
[headius @ cnutter:~/projects/jruby]
$ ruby -e "module Foo; Bar = 1; end; include Foo; module Baz; p defined? Bar;
end"
"constant"
{noformat}
Fix and specs coming.
--
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