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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 14 16:59:07 EST 2011


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

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


--- Comment #3 from Sebastien Pouliot <spouliot at novell.com> 2011-02-14 21:59:06 UTC ---
actually you can dupe it with MCS 2.11 (did not try 2.10 - but it affect
Moonlight bots) but not with the older compiler (like my system 2.6)

poupou at pollux:~/src/bugzilla> mcs --version
Mono C# compiler version 2.6.4.0
poupou at pollux:~/src/bugzilla> mcs ex.cs
ex.cs(11,17): warning CS0162: Unreachable code detected
Compilation succeeded - 1 warning(s)
poupou at pollux:~/src/bugzilla> mono ex.exe 
Incorrect WebException: System.Net.WebException: uho
  at Program.NotFound_GotResponse (IAsyncResult ar) [0x00000] in <filename
unknown>:0 


[mono] ~/src/bugzilla @ mcs --version
Mono C# compiler version 2.11.0.0
[mono] ~/src/bugzilla @ mcs ex.cs
ex.cs(11,17): warning CS0162: Unreachable code detected
Compilation succeeded - 1 warning(s)
[mono] ~/src/bugzilla @ mono ex.exe 
Exception thrown2: System.Net.WebException: uho
  at Program.NotFound_GotResponse (IAsyncResult ar) [0x00000] in <filename
unknown>:0 


"Incorrect WebException" is ok (2.6) while "Exception thrown2:" is not (2.11).

-- 
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