------art_7223_32033842.1183760101124
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 06/07/07, Charles Oliver Nutter <charles.nutter / sun.com> wrote:
> It seems incorrect for method objects to change the behavior of super.
> If I super in 'a', I want super's 'a' to be called, without exception.
>
> Can someone confirm this is a bug? In JRuby we always super up the
> same-named chain, so this represents an incompatibility.

It's probably a bug. The attached patch seems to fix this. Patch is
against the ruby_1_8 branch.

Peter

------art_7223_32033842.1183760101124
Content-Type: application/octet-stream; name=method_alias_patch
Content-Transfer-Encoding: base64
X-Attachment-Id: f_f3t7zwsl
Content-Disposition: attachment; filename="method_alias_patch"

SW5kZXg6IGV2YWwuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBldmFsLmMJKHJldmlzaW9uIDEyNzE3KQorKysg
ZXZhbC5jCSh3b3JraW5nIGNvcHkpCkBAIC04OTg2LDggKzg5ODYsOCBAQAogICAgIElEIG9pZCA9
IGlkOwogCiAgIGFnYWluOgotICAgIGlmICgoYm9keSA9IHJiX2dldF9tZXRob2RfYm9keSgma2xh
c3MsICZpZCwgJm5vZXgpKSA9PSAwKSB7Ci0JcHJpbnRfdW5kZWYocmtsYXNzLCBvaWQpOworICAg
IGlmICgoYm9keSA9IHJiX2dldF9tZXRob2RfYm9keSgma2xhc3MsICZvaWQsICZub2V4KSkgPT0g
MCkgeworCXByaW50X3VuZGVmKHJrbGFzcywgaWQpOwogICAgIH0KIAogICAgIGlmIChuZF90eXBl
KGJvZHkpID09IE5PREVfWlNVUEVSKSB7CkBAIC05NDgwLDcgKzk0ODAsNyBAQAogCX0KICAgICB9
CiAgICAgcmJfc3RyX2J1Zl9jYXQyKHN0ciwgc2hhcnApOwotICAgIHJiX3N0cl9idWZfY2F0Mihz
dHIsIHJiX2lkMm5hbWUoZGF0YS0+b2lkKSk7CisgICAgcmJfc3RyX2J1Zl9jYXQyKHN0ciwgcmJf
aWQybmFtZShkYXRhLT5pZCkpOwogICAgIHJiX3N0cl9idWZfY2F0MihzdHIsICI+Iik7CiAKICAg
ICByZXR1cm4gc3RyOwo------art_7223_32033842.1183760101124--