Visibility issues: top level object always stays private and Module.new {}
doesn't use public visibility for block body
-----------------------------------------------------------------------------------------------------------------------
Key: JRUBY-1185
URL: http://jira.codehaus.org/browse/JRUBY-1185
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.0.0
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.1.0
The tests provided below fail in JRuby. Commit coming shortly to fix it.
{noformat}
# top-level scope should allow setting visibility
public
def foo
end
test_no_exception { self.foo }
# module bodies should default to public
private
s = "bar"
m = Module.new { def foo; end }
s.extend(m)
test_no_exception { s.foo }
{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