[Mono-devel-list] possible bug in S.R.E., class.c::mono_c

Michal Moskal malekith at pld-linux.org
Tue Jan 20 15:05:00 EST 2004


On Tue, Jan 20, 2004 at 08:56:44PM +0100, Varga Zoltan wrote:
> 
>                                           Hi,
> 
>   Does this assertion happen when you call CreateType () on
> C2 ? 

Yes.

> If it does, I don't know how this can happen, since classes
> inherit
> their initial vtable from their parents, and C1 already has an 
> implementation for m1, so C2 will inherit that.

It should inherit this implementation, but it doesn't. This is because
mono_class_setup_vtable uses method names, not .override declarations 
to see if some methods are already implemented.

-- 
: Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv
: When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h



More information about the Mono-devel-list mailing list