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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to