]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Properly handle and catch inner-error of finally-block 2e5682fd195f5109862eabc18144032175799104 47/head
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 23 Jan 2019 21:39:42 +0000 (22:39 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 24 Jan 2019 08:15:25 +0000 (09:15 +0100)
commit2e5682fd195f5109862eabc18144032175799104
treeb4e9e0739eacdb410731d3013129076154f4cd27
parenta617f41413dec4da1891bfd5a1d4553465370017
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]