1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm.c (vm_define_method): defined method is run with the default

public visibility regardless the visibility context of definition.
  [ruby-core:30638]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-10-24 05:11:26 +00:00
parent 8a40d614a3
commit 98ac9b8667
3 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sun Oct 24 14:11:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (vm_define_method): defined method is run with the default
public visibility regardless the visibility context of definition.
[ruby-core:30638]
Sun Oct 24 12:08:54 2010 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/test/unit.rb: make test/unit play nicely with the rake test

View file

@ -929,7 +929,6 @@ class TestModule < Test::Unit::TestCase
def test_attr_inherited_visibility
bug3406 = '[ruby-core:30638]'
skip(bug3406)
c = Class.new do
class << self
private

1
vm.c
View file

@ -1868,6 +1868,7 @@ vm_define_method(rb_thread_t *th, VALUE obj, ID id, VALUE iseqval,
/* dup */
COPY_CREF(miseq->cref_stack, cref);
miseq->cref_stack->nd_visi = NOEX_PUBLIC;
miseq->klass = klass;
miseq->defined_method_id = id;
rb_add_method(klass, id, VM_METHOD_TYPE_ISEQ, miseq, noex);