https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-02-25T00:23:07ZRuby Issue Tracking SystemRuby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=159532011-02-25T00:23:07Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>ruby -v</strong> changed from <i>ruby 1.9.3dev (2011-02-23 trunk 30945) [x86_64-linux]</i> to <i>-</i></li></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="/issues/4438">[ruby-core:35364]</a> [Ruby 1.9 - Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: rescue args type check omitted (Closed)" href="https://redmine.ruby-lang.org/issues/4438">#4438</a>] [Open] rescue args type check omitted"<br>
on Thu, 24 Feb 2011 19:07:03 +0900, Hiroshi NAKAMURA <a href="mailto:nakahiro@gmail.com" class="email">nakahiro@gmail.com</a> writes:</p>
<p>|Rescue arg must be class or module in 1.8. 1.9 looks to ignore when it's not a class or module.<br>
|Is this expected behavior?</p>
<p>No, it should check as 1.8 does.</p>
<pre><code> matz.
</code></pre>
<p>=end</p> Ruby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=184252011-06-26T18:11:02Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>ko1 (Koichi Sasada)</i></li></ul> Ruby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=184492011-06-26T18:43:56Znahi (Hiroshi Nakamura)nakahiro@gmail.com
<ul><li><strong>Target version</strong> set to <i>1.9.3</i></li></ul> Ruby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=185212011-06-27T00:20:26Zadgar (Michael Edgar)michael.j.edgar@dartmouth.edu
<ul></ul><p>=begin<br>
Right now, the current behavior simply calls (({===})) on whichever handlers are listed; this<br>
results in interesting possibilities ((<I briefly explored on my blog|URL:<a href="http://carboni.ca/blog/p/Ruby-Did-You-Know-That-2-Exception-Handling%3E" class="external">http://carboni.ca/blog/p/Ruby-Did-You-Know-That-2-Exception-Handling></a>)). I had assumed it was intended. One<br>
could construct interesting possibilities which this behavior: raise an integer, and rescue with<br>
a proc which checks if the integer is nonzero, for example.</p>
<p>Are we sure we don't want this more general behavior? I personally find the flexibility attractive.<br>
=end</p> Ruby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=190182011-07-10T14:58:04Zko1 (Koichi Sasada)
<ul><li><strong>Target version</strong> changed from <i>1.9.3</i> to <i>2.0.0</i></li></ul><p>Let's discuss spec and impl. before 1.9.4 release.</p> Ruby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=286772012-08-06T22:33:20Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>File</strong> <a href="/attachments/2964">0001-check-rescue-clause-arguments.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2964/0001-check-rescue-clause-arguments.patch">0001-check-rescue-clause-arguments.patch</a> added</li></ul><p>Patch attached.</p> Ruby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=287212012-08-08T16:52:22Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r36658.<br>
Hiroshi, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>compile.c, insns.def (checkmatch):<br>
remove checkincludearray instruction and<br>
add new instruction checkmatch.<br>
This change is to solve<br>
[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: rescue args type check omitted (Closed)" href="https://redmine.ruby-lang.org/issues/4438">#4438</a>] "rescue args type check omitted".</li>
<li>iseq.c: increment ISEQ_MAJOR_VERSION because removal of<br>
checkincludearray instruction.</li>
<li>vm_core.h: add several definitions for<br>
the checkmatch instruction.</li>
<li>vm_insnhelper.c (check_match): added.</li>
<li>bootstraptest/test_exception.rb: add a test.</li>
<li>test/ruby/test_exception.rb: ditto.</li>
</ul> Ruby master - Bug #4438: rescue args type check omittedhttps://redmine.ruby-lang.org/issues/4438?journal_id=1029282023-04-27T17:17:54Zbyroot (Jean Boussier)byroot@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-4 priority-default" href="/issues/19620">Feature #19620</a>: allow non-module rescue filters that implement the === opertor</i> added</li></ul>