2004-03-22 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Mon, 22 Mar 2004 04:47:31 +0000 (04:47 -0000)
committerMartin Baulig <martin@novell.com>
Mon, 22 Mar 2004 04:47:31 +0000 (04:47 -0000)
* icall.c (ves_icall_MethodInfo_get_IsGenericMethod): Use
`method->method->signature->generic_param_count != 0' to make it
work for interface methods.

svn path=/trunk/mono/; revision=24391

mono/metadata/ChangeLog
mono/metadata/icall.c

index 3a90af4786db4e8872f525696ba9ea7cf9309fc7..7ea1853cd2587a38cead900b011989d61b9d5cf7 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-22  Martin Baulig  <martin@ximian.com>
+
+       * icall.c (ves_icall_MethodInfo_get_IsGenericMethod): Use
+       `method->method->signature->generic_param_count != 0' to make it
+       work for interface methods.
+
 2004-03-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * process.c: quote the string passed to the shell using g_shell_quote.
index ce762a0293e47f54669986f709ae4e54d4814ffe..f0640d114cc921cfe7aff1d8ffcb2789844afd86 100644 (file)
@@ -2048,8 +2048,7 @@ ves_icall_MethodInfo_get_IsGenericMethodDefinition (MonoReflectionMethod *method
            (method->method->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL))
                return FALSE;
 
-       mn = (MonoMethodNormal *) method->method;
-       return mn->header->gen_params != NULL;
+       return method->method->signature->generic_param_count != 0;
 }
 
 static MonoArray*