[Mono-devel-list] Generics and reflection bug - patch to icall.c/object.c

Paolo Molaro lupus at ximian.com
Thu Jun 10 09:21:09 EDT 2004


On 06/06/04 Joshua Tauberer wrote:
> Paolo Molaro wrote:
> >This kind of changes are likely wrong for instantiations of
> >generic structs. Could you cook up a few tests for them?
> >Maybe also non-generic structs need tests here.
> 
> Well, I can't test this with generic structs because I can't even create 
> a generic struct:
> 
> ** ERROR **: unknown operator: stobj
> 
> I get this when running (on Beta 2):
> 
> public class TestClass {
> 	public static void Main() {
> 		new GenericStruct<object>();
> 	}
> }
> 
> public struct GenericStruct<T> {
> }
> 
> This is way over my head now.  I don't know where stobj is coming from 
> -- no stobj opcode is in the assembly.  The assertion is in inssel.c.

Please file a bug in bugzilla.
We probably won't have the time to fix this by 1.0, unless someone
submits a non-intrusive patch.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list