Menu

#36 Return in try statement causes RuntimeException

closed-fixed
5
2004-01-12
2004-01-12
Arno Unkrig
No

When the body of a TRY statement contains a non-void
RETURN statement and either the body of the TRY
statement or any of the CATCH clauses can complete
normally, then compilation causes a "RuntimeException:
Operand stack inconsistent".

Discussion

  • Arno Unkrig

    Arno Unkrig - 2004-01-12
    • summary: Try statement causes RuntimeException during compilation --> Return in try statement causes RuntimeException
     
  • Arno Unkrig

    Arno Unkrig - 2004-01-12

    Logged In: YES
    user_id=865893

    ... only if the TRY statement has a FINALLY clause!

     
  • Arno Unkrig

    Arno Unkrig - 2004-01-12
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB