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