Class#inherited gets invoked regardless of visibility
-----------------------------------------------------

                 Key: JRUBY-1956
                 URL: http://jira.codehaus.org/browse/JRUBY-1956
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC1
            Reporter: Charles Oliver Nutter
             Fix For: JRuby 1.1RC2


Fix coming; spec added to rubyspecs already.

{noformat}
class Base
  class << self
    protected
    
    def inherited(klass)
      puts "#{klass} inherited from #{name}"
    end
  end
end


class Child < Base
end
{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

Reply via email to