[Mono-bugs] [Bug 353633] New: Type.GetConstructor(Type.EmptyTypes) returns .cctor() rather than .ctor()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 14 09:46:03 EST 2008


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


           Summary: Type.GetConstructor(Type.EmptyTypes) returns .cctor()
                    rather than .ctor()
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: stephen at gennard.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=190420)
 --> (https://bugzilla.novell.com/attachment.cgi?id=190420)
Demo of broken - Type.GetConstructor(Type.EmptyTypes)

Type.GetConstructor(Type.EmptyTypes) returns .cctor() rather than .ctor()

I have attached a .zip with a cut-down which I believe shows the issue.

see novell_cctor_bug.zip

To reproduce:
d:\bug2>bld                                                                     
d:\bug2>call ilasm2 /dll b.il                         
Assembling 'b.il' , no listing file, to dll --> 'b.dll'                     

Operation completed successfully                                            
d:\bug2>call gmcs ct.cs /r:b.dll                      

d:\bug2>mono ct.exe                                   
DEBUG: Fail (cinfo=Void .cctor())                                           

Where as under Microsoft's CLR you get:
d:\bug2>ct    
DEBUG: Pass (cinfo=Void .ctor())


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