Bugzilla – Bug 317830
[GMCS]: Serialization not yet implemented wrt. generics
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by alp@atoker.com 2005-04-29 03:29:06 MST ---- In the attached test case, serializing a generic class seems to work, but deserializing it causes this runtime error: alp@nova:~/Projects/generics-serialization$ mono genser.exe Saving Loading ** ERROR **: file object.c: line 514 (compute_class_bitmap): should not be reached aborting... Aborted This issue might also be what's causing the crashes with generics and remoting/db4o. ---- Additional Comments From alp@atoker.com 2005-04-29 03:30:25 MST ---- Created an attachment (id=167820) Test case for serialization of generic classes ---- Additional Comments From martin@ximian.com 2005-05-04 09:54:14 MST ---- I have no idea about serialization, could someone else please have a look at this ? ---- Additional Comments From lluis@ximian.com 2005-05-04 10:50:23 MST ---- The same error can be reproduced with two lines: Type t = Type.GetType (typeof(GenTest<string>).FullName); Activator.CreateInstance (t); ---- Additional Comments From vargaz@gmail.com 2005-05-05 10:51:40 MST ---- The problem is that one of the fields of the class has a type 'VAR'. This suggests to me that the class is not fully instantiated. ---- Additional Comments From martin@ximian.com 2005-06-15 11:38:06 MST ---- Looks like someone already FIXED this :-) Imported an attachment (id=167820)