New test.
[mono.git] / mcs / class / corlib / System.Runtime.Serialization.Formatters.Binary / ChangeLog
1 2006-09-05  Raja R Harinath  <rharinath@novell.com>
2
3         Fix #79159
4         * ObjectWriter.cs (WritePrimitiveTypeArray) [NET_2_0]: Encode the
5         'Kind' of each DateTime.
6         * ObjectReader.cs (ReadArrayOfPrimitiveType) [NET_2_0]: Decode the
7         'Kind' of each DateTime.
8
9 2005-12-07  Sebastien Pouliot  <sebastien@ximian.com>
10
11         * BinaryFormatter.cs: Implemented UnsafeDeserialize and 
12         UnsafeDeserializeMethodResponse methods. Fixes last TODO in this
13         namespace (for both 1.1 and 2.0 profiles).
14
15 2005-12-07  Lluis Sanchez Gual  <lluis@ximian.com>
16
17         * ObjectReader.cs: Added null check in GetDeserializationType.
18         Patch by Ben Maurer. Fixes bug #69666.
19
20 2005-12-01  Sebastien Pouliot  <sebastien@ximian.com>
21
22         * BinaryFormatter.cs: Added a demand for SerializationFormatter on 
23         Serialize method (to make some CAS test work correctly).
24
25 2005-05-26  Ben Maurer  <bmaurer@ximian.com>
26
27         * CodeGenerator.cs: Move module creation to cctor to kill double
28         checked locking and typeof locking.
29
30 2005-05-17  Lluis Sanchez Gual  <lluis@ximian.com>
31
32         * CodeGenerator.cs: Don't generate debug info here.
33
34 2005-05-09  Lluis Sanchez Gual  <lluis@ximian.com>
35
36         * ObjectWriter.cs:
37         * CodeGenerator.cs: No need to add the class for inherited fields,
38         since FieldInfo objects returned by the GetSerializableMembers
39         method will already include the class name if needed.
40
41 2005-03-23  Lluis Sanchez Gual  <lluis@ximian.com>
42
43         * BinaryCommon.cs: Added helper method for swapping bytes.
44         * ObjectReader.cs:
45         * ObjectWriter.cs: Implemented serialization of arrays of primitive
46         types using Buffer.BlockCopy to create byffers of data that is written/
47         read in a single call. It's much faster now.
48
49 2005-03-01  Lluis Sanchez Gual  <lluis@ximian.com>
50
51         * BinaryCommon.cs: Found the meaning of two unknown binary elements.
52         * CodeGenerator.cs: Derive generated classes from ClrTypeMetadata
53         instead of TypeMetadata. Added writeTypes parameter to WriteTypeData().
54         * ObjectWriter.cs: Use type and assembly names as keys for the type and
55         assembly caches. This is needed since ISerializable types can provide
56         fake type names (which are mapped to real types by a binder on
57         deserialization).
58         Implemented support for BinaryFormatter.TypeFormat.
59         * BinaryFormatter.cs, MessageFormatter.cs: Implemented support for
60         TypeFormat property.
61         * ObjectReader.cs: Added support for objects serialized without
62         member type information. This fixes bug #73114.
63         If a binder return null, use the default way of loading the type.
64
65 2005-02-25  Lluis Sanchez Gual  <lluis@ximian.com>
66
67         * ObjectReader.cs: In ReadArrayOfPrimitiveType, added a specific
68         read loop for each type. It's much faster and avoids value boxings.
69
70 2005-01-10  Lluis Sanchez Gual  <lluis@ximian.com>
71
72         * BinaryCommon.cs: IntPtr is not a primitive type in the serialization
73         world. This fixes bug #70757.
74
75 2004-12-15  Lluis Sanchez Gual  <lluis@ximian.com>
76
77         * ObjectReader.cs: Use GetField instead of GetMembers. Properties can't
78         be serialized, so it makes no sense to use GetMembers.
79
80 2004-12-08  Zoltan Varga  <vargaz@freemail.hu>
81
82         * CodeGenerator.cs: Call new DefineInternalDynamicAssembly method to prevent a race
83         condition in the setting of the CorlibInternal flag.
84
85 2004-12-06  Zoltan Varga  <vargaz@freemail.hu>
86
87         * CodeGenerator.cs: Mark the created assembly builder as internal.
88
89 2004-11-29  Lluis Sanchez Gual  <lluis@ximian.com>
90
91         * CodeGenerator.cs: Addded EnumToUnderlying method to get the underlying
92         type of an enum. This fixes bug #69753.
93
94 2004-07-02  Lluis Sanchez Gual  <lluis@ximian.com>
95
96         * BinaryCommon.cs: Added CheckSerializable method.
97         * ObjectWriter.cs: Check for type serializability even for members with
98           null values.
99         
100 2004-05-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
101
102         * ObjectWriter.cs: reduce contention in GetObjectData.
103
104 2004-05-14  Vladimir Vukicevic  <vladimir@pobox.com>
105
106         * binary_serialization_format.htm: renamed filename from having
107           spaces to _'s (checked with lluis)
108
109 2004-05-13  Lluis Sanchez Gual  <lluis@ximian.com>
110
111         * ObjectWriter.cs: Fixed and Simplified WriteGenericArray and 
112           WriteSingleDimensionArrayElements. This also fixes bug #58345.
113
114 2004-05-03  Lluis Sanchez Gual  <lluis@ximian.com>
115
116         * MessageFormatter.cs: In the all-are-primitive case, serialize Args, 
117           not OutArgs.
118
119 2004-04-28  Lluis Sanchez Gual <lluis@ximian.com>
120
121         * MessageFormatter.cs: Serialize Args, not OutArgs, like in MS.NET.
122
123 2004-04-26  Lluis Sanchez Gual <lluis@ximian.com>
124
125         * ObjectReader.cs, ObjectWriter.cs: FIXME cleaning.
126
127 2004-04-20  Lluis Sanchez Gual <lluis@ximian.com>
128
129         * CodeGenerator.cs, ObjectReader.cs, ObjectWriter.cs: Serialize decimals
130           as strings, like in MS.NET. This fixes bug #57186.
131
132 2004-02-23  Lluis Sanchez Gual <lluis@ximian.com>
133
134         * BinaryCommon.cs: Added UseReflectionSerialization property.
135         * CodeGenerator.cs, ObjectWriter.cs: When serializing the name of an 
136           inherited field, prefix the name with the class name. This fixes #54439.
137           Moved check for reflection serialization variable to BinaryCommon.
138         
139 2004-02-17  Lluis Sanchez Gual <lluis@ximian.com>
140
141         * ObjectWriter.cs: Factorized some serialization code in new classes, so it
142           is now possible to use fast IL generated classes that use direct access
143           to class fields instead of using reflection.
144         * CodeGenerator.cs: New file. Has several methods used by ObjectWriter to 
145           generate serialization code.
146
147 2004-02-05  Lluis Sanchez Gual <lluis@ximian.com>
148
149         * ObjectWriter.cs: Get the assembly of a member from the member's type, not
150           from the type of the value, because that is the type written in the
151           metadata section of the object.
152
153 2003-12-23  Lluis Sanchez Gual <lluis@ximian.com>
154
155         * ObjectReader.cs: Field names can include the type name if the field
156           belongs to a base type. Take this into account.
157
158 2003-11-26  Lluis Sanchez Gual <lluis@ximian.com>
159
160         * BinaryFormatter.cs: Added missing methods.
161
162 2003-11-20  Lluis Sanchez Gual <lluis@ximian.com>
163
164         * BinaryFormatter.cs, MessageFormatter.cs, ObjectReader.cs: Added support
165           for TypeFilter property.
166
167 2003-11-16  Lluis Sanchez Gual <lluis@ximian.com>
168
169         * BinaryFormatter.cs, MessageFormatter.cs, ObjectWriter.cs: 
170           Implemented support for AssemblyFormat property.
171
172 2003-11-12  Lluis Sanchez Gual <lluis@ximian.com>
173
174         * ObjectReader.cs, ObjectWriter.cs: Changed some GetType calls to "is" checks.
175
176 2003-07-28  Duncan Mak  <duncan@ximian.com>
177
178         * BinaryFormatter.cs (WriteBinaryHeader): changed from public to
179         private.
180
181 2003-07-25  Lluis Sanchez Gual <lluis@ximian.com>
182
183     * MessageFormatter.cs: WriteMethodCall(): It must write all parameters,
184       including ref and out.
185
186 2003-07-24  Lluis Sanchez Gual <lluis@ximian.com>
187
188     * ObjectReader.cs, ObjectWriter.cs, BinaryCommon.cs: Fixed bug #45970.
189
190 2003-07-17  Lluis Sanchez Gual <lluis@ximian.com>
191
192     * ObjectReader.cs: Keep MemberInfo members in type's metadata object, so it is
193       not necessary to query them for every object.
194     * ObjectWriter.cs: If the value being serialized is a value type (not boxed)
195       then there is no need to register it in the ObjectIDGenerator, because it is
196       not possible to have two references to the same value type object.
197
198 2003-05-13  Lluis Sanchez Gual <lluis@ideary.com>
199
200     * ObjectReader.cs: Changed signature of ReadObjectGraph, so now it returns the
201       deserialized object and the headers.
202     * MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
203       now interpreted as the uri of the target object. This seems to be MS.NET
204       behavior.
205         * BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
206           if provided.
207
208 2003-02-25  Lluis Sanchez Gual <lluis@ideary.com>
209
210         * BinaryFormatter.cs: Implemented support for binders.
211     * MessageFormatter.cs: Implemented support for binders.
212     * ObjectReader.cs: Implemented support for binders.
213
214 2003-02-04  Lluis Sanchez Gual <lluis@ideary.com>
215
216     * MessageFormatter.cs: Fixed bug in serialization of arguments.
217     * ObjectReader.cs: Fixed bug causing array of structs to fail.
218
219 2003-02-11  Patrik Torstensson
220
221     * ObjectReader.cs: Fixed root object bug causing object reader to return root object 
222           before fixup. Closes bug #37842.
223
224 2003-02-04  Lluis Sanchez Gual <lluis@ideary.com>
225
226     * MessageFormatter.cs: Corrected some bugs that affected serialization of exceptions
227
228 2003-02-04  Lluis Sanchez Gual <lluis@ideary.com>
229
230     * MessageFormatter.cs: Implemented serialization of message properties.
231
232 2003-01-24  Martin Baulig  <martin@ximian.com>
233
234         * ObjectReader.cs (ReadNextObject): Call
235         RaiseDeserializationEvent() on the ObjectManager when we're done
236         reading the whole graph.
237
238 2003-01-24  Lluis Sanchez Gual <lluis@ideary.com>
239
240     * ObjectWriter.cs, ObjectReader.cs: Added suport for headers. 
241       Corrected encoding of primitive types. Corrected a bug about zero-length arrays. 
242     * MessageFormatter.cs: Added. Implements serialization of messages.
243     * BinaryFormatter.cs: Added serialization of messages.
244     * BinaryCommon.cs: Added enum of codes of primitive types.
245
246 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
247
248         * ObjectWriter.cs: make the exception message more useful.
249
250 2003-01-16  Lluis Sanchez Gual <lluis@ideary.com>
251
252     * BinaryFormatter.cs: implemented Serialize and Deserialize methods.
253     * ObjectReader.cs: added.
254     * ObjectWriter.cs: added.
255     * BinaryCommon.cs. added.
256
257 2002-08-22  Nick Drochak  <ndrochak@gol.com>
258
259         * BinaryArrayTypeEnum.cs: Removed Non-existent enum (must have been
260         from beta days)
261
262 2002-08-18  Dick Porter  <dick@ximian.com>
263
264         * BinaryFormatter.cs: Stubbed out