]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Properly handle and catch inner-error of finally-block
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 23 Jan 2019 21:39:42 +0000 (22:39 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 28 Feb 2019 17:25:40 +0000 (18:25 +0100)
commit2976ffe6856a9cb9a43fb9730dacf92eb7df28d3
treed308802adf09952167d258da32dea584ecd9e97f
parent2d0ff92679200f04ca99e1edfd8e6634595b8c42
codegen: Properly handle and catch inner-error of finally-block

If all inner-errors are caught there is no jump-out of the current finally-
block therefore the control-flow analyzer is happy. To make this work the
surrounding inner-error must not be used or changed here.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/742
codegen/valaccodebasemodule.vala
codegen/valaccodemethodcallmodule.vala
codegen/valaccodemethodmodule.vala
codegen/valagdbusclientmodule.vala
codegen/valagdbusservermodule.vala
codegen/valagerrormodule.vala
codegen/valagobjectmodule.vala
codegen/valagtypemodule.vala
tests/Makefile.am
tests/asynchronous/catch-in-finally.vala [new file with mode: 0644]
tests/errors/catch-in-finally.vala [new file with mode: 0644]