[Mono-bugs] [Bug 649889] New: catch ignores OverflowException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 28 09:41:11 EDT 2010



           Summary: catch ignores OverflowException
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

// Compile & Run

using System;

class C
    static void Main ()
        var d = int.MinValue;
        var d2 = -1;

        try {
            long rez4 = unchecked (d / d2);
        } catch (OverflowException) {
            Console.WriteLine ("hit");


Unhandled Exception: System.ArithmeticException: Overflow or underflow in the
arithmetic operation.
  at C.Main () [0x00000] in <filename unknown>:0 



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