>What behaviour do you expect of the else block if an exception exception >in the try block is thrown, which is not catched and if a finally block >is present? Example: > >> try { >> m1() //throws MyException >> } catch (SomeExceptionThatWillNotBeThrown e) { >> } else { >> m2() >> } finally { >> m3() >> } > >So is this supposed to do m1();m3() then? In other words apiece of code >executed only if he try block throws no exception at all? Hi, Jochen. That's right, *m2()* would not be executed because the exception threw wasn't catch and the normal java/groovy behavior of executing *m3()* and passing the exception threw inside the try block to the 'next higger context' would happen.
- Is it possible to implement in the language a... Edinson E . Padrón Urdaneta
- Re: Is it possible to implement in the l... Jochen Theodorou
- Re: Is it possible to implement in t... Edinson E . Padrón Urdaneta
- Re: Is it possible to implement ... Maarten Boekhold
- Re: Is it possible to implem... Edinson E . Padrón Urdaneta
- Re: Is it possible to i... Dinko Srkoč
- Re: Is it possible ... Bob Brown
- Re: Is it possi... Dinko Srkoč
- Re: Is it possible ... Edinson E . Padrón Urdaneta
- Re: Is it possi... Jochen Theodorou
- Re: Is it possi... Edinson E . Padrón Urdaneta
- Re: Is it possi... Matt Quackenbush
- Re: Is it possi... Edinson E . Padrón Urdaneta
- Re: Is it possi... Jochen Theodorou
- Re: Is it possi... Matt Quackenbush
- Re: Is it possi... Edinson E . Padrón Urdaneta