Bug 37744 - Exceptions are not caught properly
Summary: Exceptions are not caught properly
Status: RESOLVED DUPLICATE of bug 37273
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler (show other bugs)
Version: XI 9.4 (iOS 9.2)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2016-01-16 09:40 UTC by Grigory (Playtika)
Modified: 2016-01-18 15:57 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Repro (2.34 MB, application/zip)
2016-01-16 09:40 UTC, Grigory (Playtika)
Details

Description Grigory (Playtika) 2016-01-16 09:40:52 UTC
Created attachment 14606 [details]
Repro

In release builds exceptions of invalid types are caught.

Try running Repro in Debug and then in Release.
In Release invalid exception behavior can be observed.

Following block shouldn't execute, but in Release it does!
 catch (NotExpectedException e)
                {
                    Console.Out.WriteLine("RepeatRequestStep NotExpectedException[{0}]", e.GetType());
                    if (trialNo >= 3)
                    {
                        throw;
                    }
                }
Comment 1 Zoltan Varga 2016-01-18 15:57:45 UTC

*** This bug has been marked as a duplicate of bug 37273 ***

Note You need to log in before you can comment on or make changes to this bug.