Project

General

Profile

Actions

Bug #2393

closed

NoMethodError's message change in second time

Added by wanabe (_ wanabe) almost 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.8.8dev (2009-11-23 revision 25888) [i386-mingw32]
[ruby-dev:39757]

Description

=begin
何もオーバーライドしていないメソッドから super でメソッドを呼び出そうとしたとき
一度目と二度目以降で以下のように例外のメッセージが変化します。
1.9 のチケットなので関係あるかわかりませんが、Bug #2312 の三番目の例に似ている気がします。

$ ruby -ve 'def foo; super; end; 2.times{foo rescue p $!}'
ruby 1.8.8dev (2009-11-23 revision 25888) [i386-mingw32]
-e:1: warning: too many arguments for format string
#<NoMethodError: super: no superclass method foo'> #<NoMethodError: undefined method foo' for main:Object>
=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 15 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r25890.
_, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0