visibilty faiure on class method defined with 'class << self'
-------------------------------------------------------------

                 Key: JRUBY-2085
                 URL: http://jira.codehaus.org/browse/JRUBY-2085
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.1RC1
            Reporter: Thomas E Enebo
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.1RC2


{noformat}
class OK
  protected
  def OK.bar
    puts "A"
  end
end

class Bad
  class << self
    protected
    def bar
      puts "A"
    end
  end
end

class B
  def B.foo
    OK.bar
    Bad.bar
  end
end

B.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


Reply via email to