[ruby-cvs:52252] naruse:r45107 (ruby_2_1): merge revision(s) 44931: [Backport #9452]

naruse at ruby-lang.org naruse at ruby-lang.org
Sat Feb 22 14:05:23 JST 2014


naruse	2014-02-22 14:05:22 +0900 (Sat, 22 Feb 2014)

  New Revision: 45107

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

  Log:
    merge revision(s) 44931: [Backport #9452]
    
    * 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 directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/ChangeLog
    branches/ruby_2_1/test/ruby/test_refinement.rb
    branches/ruby_2_1/version.h
    branches/ruby_2_1/vm_insnhelper.c
    branches/ruby_2_1/vm_method.c


More information about the ruby-cvs mailing list