attr_accessor, attr_reader, attr_writer, and attr not obeying visibility
------------------------------------------------------------------------
Key: JRUBY-3362
URL: http://jira.codehaus.org/browse/JRUBY-3362
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.6
Reporter: Charles Oliver Nutter
Fix For: JRuby 1.2
{noformat}
$ irb
>> module M; protected; attr_reader :foo end
=> nil
>> class C; include M end
=> C
>> C.public_instance_methods.include?('foo')
=> false
$ jirb
>> module M; protected; attr_reader :foo end
=> nil
>> class C; include M end
=> C
>> C.public_instance_methods.include?('foo')
=> true
{noformat}
Also, you can call it from outside the class. Fix pending.
--
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