Project

General

Profile

Bug #2393

NoMethodError's message change in second time

Added by wanabe (_ wanabe) about 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
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
#
#
=end

History

#1 Updated by nobu (Nobuyoshi Nakada) about 9 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

Also available in: Atom PDF