Re: [jruby-dev] Flow control should use Error-based exceptions

2007-07-27 Thread Charles Oliver Nutter
Ola Bini wrote: Just noticed a thing, thanks to John Lam. Our JumpExceptions derive from RuntimeException. That means that code that will catch(Exception) will stop flow control, if it happens at the wrong place. To get around this, I believe we should consider going to have JumpExceptions base

Re: [jruby-dev] Flow control should use Error-based exceptions

2007-07-26 Thread Bill Dortch
Hmm, I'd be a little careful with this, as it can obscure the source of failures when code elsewhere (naively?) assumes that its catch (Exception) clause will catch everything. (Ola, you may recall that I tracked down a byte-code generation bug in JavaProxyClassFactory that had remained unresolve

Re: [jruby-dev] Flow control should use Error-based exceptions

2007-07-26 Thread Nick Sieger
On 7/25/07, Nick Sieger <[EMAIL PROTECTED]> wrote: On 7/24/07, Ola Bini <[EMAIL PROTECTED]> wrote: > > Just noticed a thing, thanks to John Lam. Our JumpExceptions derive from > RuntimeException. That means that code that will catch(Exception) will > stop flow control, if it happens at the wrong

Re: [jruby-dev] Flow control should use Error-based exceptions

2007-07-25 Thread Nick Sieger
On 7/24/07, Ola Bini <[EMAIL PROTECTED]> wrote: Just noticed a thing, thanks to John Lam. Our JumpExceptions derive from RuntimeException. That means that code that will catch(Exception) will stop flow control, if it happens at the wrong place. To get around this, I believe we should consider go

[jruby-dev] Flow control should use Error-based exceptions

2007-07-24 Thread Ola Bini
Just noticed a thing, thanks to John Lam. Our JumpExceptions derive from RuntimeException. That means that code that will catch(Exception) will stop flow control, if it happens at the wrong place. To get around this, I believe we should consider going to have JumpExceptions based on java.lang.E