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

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


On Tue, Jan 20, 2004 at 09:10:05PM +0100, Varga Zoltan wrote:
> > 
> > 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.
> > 
> 
>                                                        Hi,
> 
>   The inheritance is done by simply copying the vtable from
> the parent
> class in class.c:820. Also, explicit overrides are processed
> before name
> based overriding at class.c:823.

Ok, but when you have:

.class C1 implements I1 {
	.method foo () {
		.override I1.bar
		...
	}
}

.class C2 extends C1 implements I1 {
	//nothing here
}

Then when compiling class C2 it will bail out, since method overriding
I1.bar is not called bar nor I1.bar.

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