Skip to content

Commit

Permalink
* class.c (mono_class_setup_vtable_general): Fixed bug #77127,
Browse files Browse the repository at this point in the history
	checking that methods with the same fqname are not overridden
	with a method from an ancestor.


svn path=/trunk/mono/; revision=83646
  • Loading branch information
Massimiliano Mantione committed Aug 8, 2007
1 parent d0153e5 commit 6faac16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mono/metadata/ChangeLog
@@ -1,3 +1,9 @@
2007-08-08 Massimiliano Mantione <massi@ximian.com>

* class.c (mono_class_setup_vtable_general): Fixed bug #77127,
checking that methods with the same fqname are not overridden
with a method from an ancestor.

2007-08-07 Zoltan Varga <vargaz@gmail.com>

* threads.c (free_thread_static_data_helper): Avoid a crash if
Expand Down
3 changes: 2 additions & 1 deletion mono/metadata/class.c
Expand Up @@ -2018,7 +2018,8 @@ mono_class_setup_vtable_general (MonoClass *class, MonoMethod **overrides, int o
continue;

if (((fqname && !strcmp (cm->name, fqname)) || !strcmp (cm->name, qname)) &&
mono_metadata_signature_equal (mono_method_signature (cm), mono_method_signature (im))) {
mono_metadata_signature_equal (mono_method_signature (cm), mono_method_signature (im)) &&
((vtable [io + l] == NULL) || mono_class_is_subclass_of (cm->klass, vtable [io + l]->klass, FALSE))) {

/* CAS - SecurityAction.InheritanceDemand on interface */
if (security_enabled && (im->flags & METHOD_ATTRIBUTE_HAS_SECURITY)) {
Expand Down

0 comments on commit 6faac16

Please sign in to comment.