[Mono-bugs] [Bug 384127] New: MethodBuilder. GetGenericArguments must return null if method is not generic

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Apr 26 13:42:41 EDT 2008


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


           Summary: MethodBuilder.GetGenericArguments must return null if
                    method is not generic
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


When the method is not generic, MethodBuilder.GetGenericArguments should return
null. Currently we return an empty type array.

>From MSDN:

"An array of GenericTypeParameterBuilder objects representing the type
parameters, if the method is generic, or a null reference (Nothing in Visual
Basic) if the method is not generic."

To fix this, we either need to change gmcs to no longer rely on the original
behavior or use AssemblyBuilder.IsCompilerContext to retain the original
behavior for gmcs.


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