merge -r 60814:60815
[mono.git] / mcs / class / corlib / System.Runtime.Serialization / ChangeLog
1 2006-01-04  Raja R Harinath  <rharinath@novell.com>
2
3         * ObjectManager.cs (ObjectRecord.IsInstanceReady): Fix regression
4         introduced in previous patch.  See the re-opened bug #76931.
5
6 2005-12-15  Martin Baulig  <martin@ximian.com>
7
8         * ObjectManager.cs: When deserializing an object that has a
9         surrogate, actually check the return value of
10         ISerializationSurrogate.SetObjectData(); fixes #76931.
11
12 2005-10-03  Lluis Sanchez Gual  <lluis@novell.com>
13
14         * ObjectIDGenerator.cs: Use custom comparer instead of an instance
15         wrapper. Closes bug #76017.
16
17 2005-06-13  Lluis Sanchez Gual  <lluis@novell.com>
18
19         * Formatter.cs: Properly initialize protected fields. Fixes bug #75233. 
20
21 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
22
23         * SerializationInfo.cs: Use IsInstanceOfType instead of IsAssignableFrom
24         since GetType() may not return the correct type if the object is
25         a remoting proxy.
26
27 2005-05-09  Lluis Sanchez Gual  <lluis@novell.com>
28
29         * FormatterServices.cs: In GetSerializableMembers, private fields
30         from base classes must include the class name in the field name.
31         In this case, it now creates a clone of the field with the
32         modified name. This patch together with r44260 fixes bug #74760.
33
34 2004-12-09  Lluis Sanchez Gual  <lluis@ximian.com>
35
36         * ObjectManager.cs: When deserializing an object that implements
37         ISerializable, check if a surrogate     exists for that object, before
38         trying to deserialize it as ISerializable. This fixes bug #70104.
39
40 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
41
42         * ObjectIDGenerator.cs: added TODO for serialization
43
44 2004-06-09  Duncan Mak  <duncan@ximian.com>
45
46         * ObjectManager.cs (RegisterObject): Add checks for
47         ArgumentNullException as well.
48
49 2004-06-09  Duncan Mak  <duncan@ximian.com>
50
51         * SerializationInfoEnumerator.cs: Instead of using
52         IDictionaryEnumerator from a Hashtable, use a normal IEnumerator
53         from the newly added ArrayList in SerializationInfo.
54
55         * SerializationInfo.cs: Added an extra ArrayList so that we can
56         keep the SerializationEntrys added in the order.
57         (SerializationInfo, AddValue): Throw ArgumentNullException
58         correctly.
59
60
61 2004-06-08  Duncan Mak  <duncan@ximian.com>
62
63         * ObjectManager.cs (RegisterObject): Throw
64         ArgumentOutOfRangeException if the objectID parameter is less than
65         or equal to zero. This check was missing from this particular
66         overload.
67
68 2004-05-14  Marek Safar  <marek.safar@seznam.cz>
69
70         * SerializationInfo.cs: Removed useless [CLSCompliant (false)]
71
72 2003-11-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
73
74         * FormatterServices.cs: Added CheckTypeSecurity() and
75           GetSafeUninitializedObject().
76
77 2003-11-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
78
79         * ObjectManager.cs: Fixed header, internalized enum
80         * Formatter.cs: Implemented
81
82 2003-11-11  Lluis Sanchez Gual  <lluis@ximian.com>
83
84         * FormatterServices.cs: Fixed some comments.
85
86 2003-10-21  Lluis Sanchez Gual  <lluis@ximian.com>
87
88         * SerializationInfo.cs: Fixed bug in GetValue. Use IsAssignableFrom instead
89           of IsSubclass, since the type can be an interface.
90
91 2003-10-18  Lluis Sanchez Gual  <lluis@ximian.com>
92
93         * FormatterServices.cs: In GetUninitializedObject methdod, reuse
94         ActivationServices.AllocateUninitializedClassInstance, it does the same.
95
96 2003-07-28  Duncan Mak  <duncan@ximian.com>
97
98         * Formatter.cs (WriteSByte): Added CLSCompliant attribute.
99
100 2003-07-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
101
102         * FormatterServices.cs:
103         (GetSerializableMembers): check that all base types are serializable
104         when getting their fields. Fixes bug #46875.
105
106 2003-07-17  Lluis Sanchez Gual  <lluis@ximian.com>
107
108         * ObjectIDGenerator.cs: Optimized access to hashtable and reduced the
109           number of calls to GetType(). (Patch by Paolo).
110           Also added a NextId property that returns a new Id without registering
111           an object.
112
113 2003-06-26  Lluis Sanchez Gual  <lluis@ximian.com>
114
115         * SerializationInfo.cs: Fixed bug #44955
116
117 2003-05-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
118
119         * FormatterServices.cs: patch from Jean Marc that fixes bug #42742.
120
121 2003-02-18  Lluis Sanchez Gual  <lluis@ideary.com>
122
123         * ObjectManager.cs: Corrected a problem with arrays of structs. Elements where
124           not correctly updated by the final fixup.
125
126 2003-01-27  Lluis Sanchez Gual  <lluis@ideary.com>
127
128         * ObjectManager.cs: Corrected a problem with IObjectReferece objects.
129
130 2003-01-24  Martin Baulig  <martin@ximian.com>
131
132         * ObjectManager.cs (RaiseDeserializationEvent): Walk the object
133         list in the correct order.
134
135 2003-01-16  Lluis Sanchez Gual  <lluis@ideary.com>
136
137         * ObjectManager.cs: Implemented and added file
138         * SurrogateSelector.cs: completed implementation.
139         * SerializationInfo.cs: corrected a bug in GetValue method.
140         * ObjectIDGenerator.cs: corrected a bug. Now it does not give the same
141           id for two different instances that return true when calling Equal.
142
143 2002-12-06  Duncan Mak  <duncan@ximian.com>
144
145         * Formatter.cs (WriteValueType): Remove the erroneous CLSCompliant attribute.
146
147 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
148
149         * FormatterServices.cs: implemented GetUninitializedObject.
150         PopulateObjectMembers needs a working FieldInfo.SetValue (it's
151         not implemented right now).
152
153 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
154
155         * FormatterServices.cs:a implemented GetSerializableMembers ().
156
157 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
158
159         * FormatterServices.cs: New file with some implementation.
160
161 2002-08-16  Dietmar Maurer  <dietmar@ximian.com>
162
163         * SerializationInfo.cs: special case for null values.
164         use the converter everywhere.
165
166 2002-08-14  Dietmar Maurer  <dietmar@ximian.com>
167
168         * SerializationInfo.cs: added new function to support the runtime
169
170 2002-07-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
171
172         * Formatter.cs: added namespace.
173
174 2002-06-10  Duncan Mak  <duncan@ximian.com>
175
176         * Formatter.cs: Addd to CVS.
177
178         * FormatterConverter.cs: Added to CVS.
179
180         * SerializationInfo.cs (AddValue): Removed extra CLSCompliant attribute.
181
182 2002-04-12  Duncan Mak  <duncan@ximian.com>
183
184         * SerializationException.cs: Added missing constructor for serialization.
185
186 2002-03-12  Duncan Mak  <duncan@ximian.com>
187
188         * IFormatter.cs: Fix the return type of the Serialize method.
189
190 2002/03/07  Nick Drochak <ndrochak@gol.com>
191
192         * StreamingContextStates.cs: Add missing value (CrossAppDomain) and
193         adjust All value accordingly.
194
195 2002-03-01  Duncan Mak  <duncan@ximian.com>
196
197         * ObjectIDGenerator.cs: Implemented.
198
199 2002-02-19  Duncan Mak  <duncan@ximian.com>
200
201         * SurrogateSelector.cs: Implemented.    
202
203         * SerializationInfoEnumerator.cs: oh, and simplified the Current
204         property too.
205         
206         * SerializationInfo.cs: Forgot to finish up GetEnumerator ().
207
208 2002-02-18  Duncan Mak  <duncan@ximian.com>
209
210         * SerializationInfo.cs: Converted Type.GetType calls to the faster
211         typeof operator.
212
213 2002-02-16  Duncan Mak  <duncan@ximian.com>
214
215         * SurrogateSelector.cs: Stubbed out. Gonna be working on this
216         tomorrow.
217
218 2002-02-15  Duncan Mak  <duncan@ximian.com>
219
220         * SerializationEntry.cs: Added internal constructor for writing
221         bits in SerializationInfoEnumerator.
222         * SerializationInfo.cs: Completed.
223         * SerializationInfoEnumerator.cs: Implemented. Piggybacking on
224         Hashtable's GetEnumerator method.
225
226 2002-02-13  Dan Lewis <dihlewis@yahoo.co.uk>
227
228         * SerializationInfoEnumerator.cs: New file (stub)
229
230 2002-02-12  Duncan Mak  <duncan@ximian.com>
231         
232         * SerializationBinder.cs: Implemented.
233         * SerializationEntry.cs: Implemented.
234         * SerializationInfo.cs: Fixed the get portion of the AssemblyName
235         property. Implemented the FullTypename property.
236         
237 2002-01-06  David Dawkins <david@dawkins.st>
238
239         * IFormatter.cs : New file
240         * ISerializationSurrogate.cs : New file
241         * ISurrogateSelector.cs : New file
242
243 2002-05-01  Ravi Pratap  <ravi@ximian.com>
244
245         * SerializationInfo.cs : Insert MonoTODO attribute.
246
247 2001-08-24  Nick Drochak  <ndrochak@gol.com>
248
249         * IDeserializationCallback.cs: New File
250
251 Wed Nov 14 17:03:30 CET 2001 Paolo Molaro <lupus@ximian.com>
252
253         * IFormatterConverter.cs, SerializationInfo.cs: CLSCompliant updates.
254
255 Fri Nov 2 18:40:12 CET 2001 Paolo Molaro <lupus@ximian.com>
256
257         * SerializationException.cs: implemented.
258
259 2001-08-24  Nick Drochak  <ndrochak@gol.com>
260
261         * SerializationInfo.cs: Added all the public methods so that the compile would not break
262
263 2001-07-20  Miguel de Icaza  <miguel@ximian.com>
264
265         * SerializationInfo.cs: New file.
266
267         * IFormatterConverter.cs: New file.
268
269         * ISerializable.cs: New file.