[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / ChangeLog
index 43b7dcf2fef9f5db6aef8e02ce7b7bed4cdd9a92..6300882155a6a2ba38e14b5e3aaf03f751473d41 100644 (file)
@@ -1,3 +1,293 @@
+2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlTypeMapping.cs, XmlReflectionImporter.cs: XmlRoot takes higher
+         priority to XmlSchemaProvider QName.
+         This fixes WCF EndpointAddress serialization.
+
+2010-03-16  Jb Evain  <jbevain@novell.com>
+
+       * SerializationSource.cs: use MOONLIGHT symbol to disambiguate
+       MonoTouch and Moonlight code.
+
+2010-03-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlAnyElementAttribute.cs : add internal IsNullableSpecified
+         (for moonlight compatibility).
+       * XmlChoiceIdentifierAttribute.cs : implement MemberInfo (ditto).
+
+2010-03-08  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializationWriter.cs : namespaces argument could be null.
+         MS generated serializers often pass null here.
+
+2010-01-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SerializationCodeGenerator.cs : generate valid code for non-
+         identifier names. This should fix bug #488293.
+
+2010-01-26  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlReflectionImporter.cs, SerializationCodeGenerator.cs,
+         XmlSerializationWriterInterpreter.cs: XmlAnyElementAttribute can be
+         still used for non-XmlNode (object) array. It only fails when it
+         tries to serialize non-XmlNode object at run-time.
+         Fixed bug #553032.
+
+2010-01-06  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SerializationCodeGenerator.cs : enum value identifiers should be
+         escaped with '@'. Fixed bug #566370.
+
+2009-03-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlRootAttribute.cs : it is also expected to have
+         internal property for SL2.
+
+2009-03-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlArrayItemAttribute.cs, XmlElementAttribute.cs,
+         XmlAnyElementAttribute.cs : added more 2.1 obstacles.
+
+2009-03-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlChoiceIdentifierAttribute.cs : added internal MemberInfo
+         property for SL2.
+
+2009-03-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
+         SerializationSource as the class is going to be used in 2.1 too.
+       * XmlRootAttribute.cs : use KeyHelper above to add internal Key
+         property that is used in SL2 System.Xml.Serialization.dll.
+
+2009-02-19  Geoff Norton  <gnorton@novell.com>
+
+       * SerializationSource.cs: KeyHelper is needed by
+       the 2.1 profile now.
+
+2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaImporter.cs : hack ImportSchemaType().
+
+2008-12-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * XmlSerializer.cs: updated to work with shadowcopy fixes.
+
+2008-11-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * TypeData.cs : do not reject ICollection<T> for not implementing
+         Item[T]. Fixed bug #430759.
+
+2008-09-19  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializer.cs : revert previous change and fix sys.data tests.
+
+2008-09-17  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializer.cs : in 2.0 profile it seems to create XmlReader
+         for stream and textreader, that skips whitespaces.
+
+2008-09-02  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SerializationCodeGenerator.cs
+         XmlSerializationWriterInterpreter.cs : fixed bug #419973.
+         Sometimes implicit operators could involve and it affects on
+         typecasting. It's simple for code generator, but very bad for
+         reflection.
+
+2008-08-19  Jb Evain  <jbevain@novell.com>
+
+       * XmlRootAttribute.cs: ifdef out parts to compile on net_2_1.
+
+2008-07-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializationWriter.cs : more helpful error message.
+
+2008-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MapCodeGenerator.cs : use explicit element name for explicitly added
+         XmlElementAttribute. (exposed by some product from some company.)
+
+2008-06-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializationReaderInterpreter.cs, MapCodeGenerator.cs,
+         SerializationCodeGenerator.cs : fixed bug #378696.
+         Default value should not be filled during deserialization, and
+         default values for DateTime/TimeSpan/DateTimeOffset should not be
+         output as raw string in generated code.
+
+2008-06-04  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializationReader.cs : in ReadXmlDocument(), MoveToContent()
+         is required after ReadStartElement(). Fixed bug #393406 (without
+         unit test; no simple way to do that :( ).
+
+2008-04-11  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlTypeMapping.cs : .NET 2.0 has a weird behavior that swallows
+         exception from IXmlSerializable.GetSchema().
+
+2008-04-01  Lluis Sanchez Gual <lluis@novell.com> 
+
+       * TypeData.cs: Prefix with a '@' type names that are equal to keywords.
+       * XmlSerializationReaderInterpreter.cs,
+         XmlSerializationWriterInterpreter.cs: Properly handle nullable enum
+         values.
+       * SerializationCodeGenerator.cs: Properly handle nullable enum values.
+         Don't generate read flags for text collectors (avoid var not used
+         warning).
+       * XmlReflectionImporter.cs: Assign the MappedType to text collector
+         members. It is needed when the member is an enum.
+
+2008-03-30  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * MapCodeGenerator.cs: Ensure fields that back properties are unique.
+
+2008-03-26  Lluis Sanchez Gual <lluis@novell.com> 
+
+       * MapCodeGenerator.cs, XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs:
+         If a value type field has the IsNullable property set to true,
+         generate it as System.Nullable<T>.
+
+2008-03-26  Lluis Sanchez Gual <lluis@novell.com> 
+
+       * XmlSchemaImporter.cs: Fix problem with primitive types with a forced
+         base class. It happens for example when a web service declares a
+         soap header of type bool. The schema exporter needs to generate a
+         subclass of SoapHeader for that header type. But if bool is used in
+         the parameters, it must use System.Boolean, not the SoapHeader
+         subclass. The solution is to store primitive types with a forced
+         base class in a different table. In this way it is possible to have
+         two maps for primitive types: one with the forced base class
+         (returned by ImportDerivedTypeMapping) and one with the regular
+         primitive map. Fixes bug #336739.
+
+2008-03-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlReflectionImporter.cs : set key for imported type mapping so
+         that generated serializer does not result in duplicate key error.
+         Fixed bug #372780.
+
+2008-02-03 Arina Itkes <arinai@mainsoft.com>
+
+       * XmlSchemaExporter.cs : Generated typed DataTable and typed DataSet 
+         have an identical schema and an identical TargetNamespace. 
+         This fix is a workaround for this specific case.
+
+2008-01-24  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * TypeData.cs : fixed setter which did not actually see the argument.
+       * XmlTypeMapElementInfo.cs : some cosmetic fixes for gendarme-
+         reported issues.
+
+2007-11-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlTypeMapping.cs : to get schema provider method, check base
+         types as well (i.e. FlattenHierarchy). Otherwise typed DataSet
+         cannot be reflected in 2.0.
+
+2007-11-02  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * TypeTranslator.cs : for duration, rather use primitiveTypes than
+         nameCache, and hence TimeSpan could be serialized just as custom
+         type. Fixed bug #338705.
+
+2007-11-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaImporter.cs : simpleType is allowed to be imported.
+         (Part of #336739 fix.)
+
+2007-10-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlCustomFormatter.cs : use RoundtripKind when converting to and
+         from DateTime.
+
+2007-10-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MapCodeGenerator.cs : found the true culprit for the previous
+         attempt to the fix.
+
+2007-10-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MapCodeGenerator.cs, XmlSchemaImporter.cs: revert the previous
+         change; the type is included in the output, but it should not be
+         the base type.
+
+2007-10-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MapCodeGenerator.cs, XmlSchemaImporter.cs: when a complexType has
+         simple content extension/restriction and the simple base type is
+         schema-defined, it must be written in exported code. Fixed (part
+         of?) bug #336739.
+
+2007-10-26  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * TypeTranslator.cs, XmlCustomFormatter.cs : looks like duration is
+         serialized to System.String, not TimeSpan. Fixed bug #336625.
+
+2007-09-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlMapping.cs : added XsdElementName.
+       * XmlSerializationWriter.cs : some more implementation.
+
+2007-09-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlTypeMapping.cs : Namespace and XmlTypeNamespace could be
+         different when an explicit namespace is specified (e.g. at
+         XmlReflectionImporter.ctor).
+       * SerializationCodeGenerator.cs,
+         XmlSerializationWriterInterpreter.cs :
+         revert XmlTypeMapping.XmlTypeNamsepace usage. Now with the fix
+         above, original code should work fine.
+
+2007-09-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlTypeMapping.cs, XmlSerializationWriterInterpreter.cs,
+         SerializationCodeGenerator.cs :
+         More XmlSchemaProviderAttribute method check. Use QName returned
+         by the method for the output root name.
+
+2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
+         byte[] (processed as primitive SchemaType). Fixed bug #81880.
+
+2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaProviderAttribute.cs : added IsAny.
+
+2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializationReader.cs :
+         implemented ReaderCount and CheckReaderCount().
+
+2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MapCodeGenerator.cs : avoid possible duplicates in generated field 
+         names. Fixed bug #82078.
+
+2007-08-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializer.cs : use WhitespaceHandling.Significant when creating
+         XmlTextReader. Fixed bug #82372. No tests should be added for it.
+
+2007-07-29  Konstantin Triger <kostat@mainsoft.com>
+
+       * XmlSerializationWriter.cs: do not output xml declaration while
+               serializing XmlDocument.
+
+2007-07-26  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSerializationWriterInterpreter.cs : looks like XmlNode[]
+         serialization is a complicated mess. bug #81539.
+
+2007-07-23  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * XmlTypeMapping.cs: fixed XmlSerializableMapping ctor, corrected when
+       qualified name is empty
+       * XmlSchemaExporter.cs: fixed SetSchemaXmlSerializableType when schema
+       provider method returns null schema
+
 2007-06-30  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * CodeIdentifier.cs: Default ctor is public on 1.0 profile too.