[Mono-bugs] [Bug 463121] New: nullable decimal comparison failure

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 31 12:03:44 EST 2008


           Summary: nullable decimal comparison failure
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: x86-64
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: webservices at landmarkdigital.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development

WebServices Group <webservices at landmarkdigital.com> changed:

           What    |Removed                                         |Added
               Flag|                                                |SHIP_STOPPER?

When comparing a nullable decimal set to null to a nullable decimal set to a
number, the result in mono 2.2 is always true.  I verified in Mono 1.9.1 and
Visual Studio 2005 SP1 that the result should be false.  This is a fundamental

Code Sample:

            decimal? D1 = null;
            decimal? D2 = 7;

            if (D1 == D2)
                Console.WriteLine("null == 7  incorrect");
            else if (D1 != D2)
                Console.WriteLine("null != 7  correct");

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

More information about the mono-bugs mailing list