Object#singleton_methods(true) doesn't include inherited methods
----------------------------------------------------------------
Key: JRUBY-3870
URL: http://jira.codehaus.org/browse/JRUBY-3870
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Environment: github trunk, Java 6, Mac OS X 10.5.8
Reporter: Hiro Asari
Fix For: JRuby 1.4
Consider:
{noformat}
class X
def self.cls_inherited;end
end
class Y < X
end
X.singleton_methods(false)
Y.singleton_methods(false)
X.singleton_methods(true)
Y.singleton_methods(true)
{noformat}
In order, the results should be:
[cls_inherited],[],[cls_inherited],[cls_inherited] in MRI (both 1.8.6 and svn
trunk).
But JRuby returns [] for the last.
--
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