forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use "ready to throw" utility methods
The Ruby.newBlahError methods are expected to return a fully- prepared RaiseException with stack trace and current $! set. If these methods are used to create a RubyException for throwing on another thread, the current thread's stack trace and $! will be used incorrectly. Instead, I start the process of adding direct constructors for Ruby exceptions, starting with RubyIOError.newIOError, which will return just the Ruby exception object without any preparation for throwing.
- Loading branch information
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters