[ruby-cvs:52076] shugo:r44931 (trunk): * vm_insnhelper.c (vm_call_method): should check ci->me->flag of

shugo at ruby-lang.org shugo at ruby-lang.org
Thu Feb 13 23:44:41 JST 2014


shugo	2014-02-13 23:44:41 +0900 (Thu, 13 Feb 2014)

  New Revision: 44931

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44931

  Log:
    * vm_insnhelper.c (vm_call_method): should check ci->me->flag of
      a refining method in case the method is private.
      [ruby-core:60111] [Bug #9452]
    
    * vm_method.c (make_method_entry_refined): set me->flag of a refined
      method entry to NOEX_PUBLIC in case the original method is private
      and it is refined as a public method.  The original flag is stored
      in me->def->body.orig_me, so it's OK to make a refined method
      entry public.  [ruby-core:60111] [Bug #9452]
    
    * test/ruby/test_refinement.rb: related tests.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_refinement.rb
    trunk/vm_insnhelper.c
    trunk/vm_method.c


More information about the ruby-cvs mailing list