Bug 317830 (MONO74767) - [GMCS]: Serialization not yet implemented wrt. generics
Summary: [GMCS]: Serialization not yet implemented wrt. generics
Status: RESOLVED FIXED
Alias: MONO74767
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-29 10:29 UTC by Alp Toker
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Test case for serialization of generic classes (929 bytes, text/plain)
2005-04-29 10:30 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:15:14 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)