[Mono-bugs] [Bug 671878] New: misordered exception clauses when compiling againt 2.1 (moonlight)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 14 16:51:02 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=671878

https://bugzilla.novell.com/show_bug.cgi?id=671878#c0


           Summary: misordered exception clauses when compiling againt 2.1
                    (moonlight)
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: spouliot at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


When compiling a DRT (#866) SMCS mis-compile a method which makes the 'catch
(Exception)' take priority over the 'catch (WebException)'.

reflector shows the clauses to be:

try L_0000 to L_000b catch [mscorlib]System.Exception handler L_00a8 to L_00c5
try L_0017 to L_006a catch [mscorlib]System.Exception handler L_006a to L_0087
try L_0000 to L_000b catch [System.Net]System.Net.WebException handler L_000b
to L_00a8
try L_0000 to L_00c5 finally handler L_00c5 to L_00cb


compiling the same test case with 'mcs' (regular mono, not 2.1 assemblies) show
the right order.

try L_001c to L_006f catch [mscorlib]System.Exception handler L_006f to L_008e
try L_0000 to L_0010 catch [System]System.Net.WebException handler L_0010 to
L_00af
try L_0000 to L_0010 catch [mscorlib]System.Exception handler L_00af to L_00ce
try L_0000 to L_00ce finally handler L_00ce to L_00d4

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list