Module#public does not follow method redefinition
-------------------------------------------------
Key: JRUBY-3917
URL: http://jira.codehaus.org/browse/JRUBY-3917
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.3.1
Environment: Ubuntu 9.04, IA-32
Reporter: Shugo Maeda
Priority: Minor
Module#public does not follow method redefinition.
class Foo
private
def foo
p :foo
end
end
class Bar < Foo
public :foo
end
class Foo
def foo
p :redefined
end
end
b = Bar.new
b.foo # :foo, but it should be :redefined
FYI, in CRuby, NODE_ZSUPER is used to implement it. Futhermore, Kernel#method
and Module#instance_method return the method of the superclass to hide
NODE_ZSUPER.
--
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