After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 475922 - exception handler never gets called
exception handler never gets called
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Errors
0.3.x
Other All
: Urgent major
: ---
Assigned To: Jürg Billeter
Vala maintainers
: 515735 546043 559971 560909 561766 562384 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-09-11 17:01 UTC by Travis Watkins
Modified: 2009-01-17 23:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example (386 bytes, text/plain)
2007-09-11 17:02 UTC, Travis Watkins
Details

Description Travis Watkins 2007-09-11 17:01:24 UTC
In the attached code the exception handler never gets called (even though there is no way you have that icon) which can later cause problems because inner_error never gets cleared.
Comment 1 Travis Watkins 2007-09-11 17:02:02 UTC
Created attachment 95369 [details]
example
Comment 2 Jürg Billeter 2007-09-18 20:27:36 UTC
Confirming, exception handling currently only works in variable initializers and in the main expression of an expression statement. We need to rearrange the generated C code nodes to be able to handle exceptions in arbitrary expressions.
Comment 3 Jürg Billeter 2008-02-29 20:34:48 UTC
*** Bug 515735 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Svensson 2008-07-16 12:28:11 UTC
I think this bugs has been resolved by some other change:

When building and running the attached program everything seems to work properly.

daniel@purplehaze:/tmp$ valac -o test --pkg=gtk+-2.0 test.vala 
daniel@purplehaze:/tmp$ LC_ALL=C ./test

** (test:21210): CRITICAL **: Icon 'foobardoesnotexist' not present in theme
daniel@purplehaze:/tmp$ 
Comment 5 Jürg Billeter 2008-09-10 16:27:30 UTC
*** Bug 546043 has been marked as a duplicate of this bug. ***
Comment 6 Jürg Billeter 2008-11-15 11:37:36 UTC
*** Bug 560909 has been marked as a duplicate of this bug. ***
Comment 7 Jürg Billeter 2008-11-29 18:53:08 UTC
*** Bug 561766 has been marked as a duplicate of this bug. ***
Comment 8 Jürg Billeter 2008-11-29 18:59:35 UTC
2008-11-29  Jürg Billeter  <j@bitron.ch>

	* vala/valamethodcall.vala:

	Fix error handling in inner expressions, fixes bug 475922

Fixed in r2086.
Comment 9 Jürg Billeter 2008-11-29 19:27:43 UTC
*** Bug 562384 has been marked as a duplicate of this bug. ***
Comment 10 Jürg Billeter 2009-01-17 23:17:59 UTC
*** Bug 559971 has been marked as a duplicate of this bug. ***