[Mono-bugs] [Bug 467229] New: Type.Equals/GetHashCode should be based on UnderlyingSystemType

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 19 00:09:37 EST 2009


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


           Summary: Type.Equals/GetHashCode should be based on
                    UnderlyingSystemType
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jeroen at sumatra.nl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=265918)
 --> (https://bugzilla.novell.com/attachment.cgi?id=265918)
C# repro

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64;
Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322;
NET CLR 3.5.21022; WWTClient2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)

System.Type equality should be based on the UnderlyingSystemType property, not
on an internal field as it currently is.

This breaks my IKVM.Reflection.Emit implementation.

Reproducible: Always

Steps to Reproduce:
Run attached program.
Actual Results:  
False
0

Expected Results:  
True
42

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