GNOME Bugzilla – Bug 515735
exceptions not cought on assigments
Last modified: 2008-02-29 20:34:48 UTC
code compiles just fine but the resulting binary doesn't handle exceptions as expected. little testcase which prints out "uncought": using GLib; public class Test : Object { public static int main(string[] args) { string s; try { s = foo(); // <-- works when removing "s = " if (s == null) stdout.printf("uncought\n"); } catch(DummyError err) { stdout.printf("cought\n"); } return 0; } public static string foo() throws DummyError { throw new DummyError.CATCHME("foo"); } } public errordomain DummyError { CATCHME }
Confirming.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 475922 ***