2008-05-19 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System / ChangeLog
index 2974f46451dd8464b3c2d7124957af00f98b9ecf..6cbb3711ce5408ad775c4ad6c851f78d1cde3809 100644 (file)
@@ -1,3 +1,387 @@
+2008-05-19  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Boolean.cs,
+       * Double.cs,
+       * Enum.cs,
+       * Int64.cs,
+       * Single.cs,
+       * UInt32.cs,
+       * UInt64.cs: Avoid unboxing primitive types more than one time.
+       [Found using Gendarme]
+
+2008-05-19  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * String.cs: Update Trim functions
+
+2008-05-19  Zoltan Varga  <vargaz@gmail.com>
+
+       * ConsoleDriver.cs: Avoid initializing the three driver classes when only one
+       is needed.
+
+2008-05-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * String.cs: Update Join and Pad functions
+
+2008-05-18  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Environment.cs: Use String.IsNullOrEmpty inside 2.0 code.
+       [Found using Gendarme]
+
+2008-05-16  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * String.cs: Directly create charenumerator
+
+2008-05-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * String.cs: Resubmit uncritical parts of String patch
+
+2008-05-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * DateTime.cs: Fix parameter names
+
+2008-05-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * Decimal.cs: Fix parameter names
+
+2008-05-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * Decimal.cs: Tabbify/Format
+
+2008-05-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * Version.cs
+         UnhandledExceptionEventHandler.cs
+         UInt64.cs
+         UInt32.cs
+         UInt16.cs: Fix parameter names
+         Type.cs: Fix parameter names, formatting
+         TimeSpan.cs
+         StringComparer.cs
+         Single.cs
+         SByte.cs: Fix parameter names
+
+2008-05-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * Double.cs
+         Enum.cs
+         Exception.cs
+         IComparable.cs
+         IEquatable.cs
+         IFormatProvider.cs
+         IFormattable.cs
+         InsufficientMemoryException.cs: Fix parameter names
+
+2008-05-14  Jb Evain  <jbevain@novell.com>
+
+       * Exception.cs (ToString): output a new line before the 
+       inner exception separator. Fixes #390150.
+
+2008-05-12  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Type.cs: Modifies exceptions to match MS. Changed GetTypeFromHandle
+       on 1.0 profile to throw ArgumentException when handle is invalid,
+
+2008-05-08  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * Activator.cs (CreateInstance): Check for null types when creating
+       the error message.
+
+2008-05-07  Robert Jordan  <robertj@gmx.net>
+
+       * RuntimeFieldHandle.cs, RuntimeTypeHandle.cs, RuntimeMethodHandle.cs:
+       Don't try to serialize uninitialized handles. Fixes #386641.
+
+2008-05-06  Marek Safar  <marek.safar@gmail.com>
+
+       * IntPtr.cs (eplicit long, GetObjectData): Use ToInt64.
+
+2008-05-05  Zoltan Varga  <vargaz@gmail.com>
+
+       * Type.cs (GetTypeFromHandle): Apparently, it is possible to create a 
+       RuntimeTypeHandle with a zero handle value by calling its ctor. Add an argument
+       check for that.
+
+       * IntPtr.cs (ToInt64): Use (long)(int) on 32 bit platforms to avoid the default
+       unsigned conversion done by the compiler. Fixes #386466.
+
+2008-05-04  Zoltan Varga  <vargaz@gmail.com>
+
+       * Type.cs (UnderlyingSystemType): Add a comment pointing people to 
+       Enum.GetUnderlyingType ().
+
+2008-04-26  Zoltan Varga  <vargaz@gmail.com>
+
+       * Array.cs (LastIndexOf): Return GetLowerBound (0) -1 instead of -1.
+       
+       * Array.cs (LastIndexOf): Fix handling of empty arrays. Fixes #383876.
+
+2008-04-13  Zoltan Varga  <vargaz@gmail.com>
+
+       * String.cs (Split): Fix the handling of RemoveEmptyEntries when the separator
+       matches at the beginning of the string. Fixes #374511.
+
+2008-04-13  Jb Evain  <jbevain@novell.com>
+
+       * ICloneable.cs: use the INSIDE_CORLIB pattern to
+       internalize code that is used outside the corlib.
+       Merged from the Moonlight 2 branch.
+
+2008-04-04  Raja R Harinath  <harinath@hurrynot.org>
+
+       * String.cs (EndsWith) [CultureInfo variant]: Handle null 'culture'.
+       (StartsWith, EndsWith, IndexOf, LastIndexOf) [StringComparison variant]:
+       Throw exception on invalid StringComparison.
+
+2008-04-01  Eyal Alaluf <eyala@mainsoft.com>
+
+       * NumberFormatter.cs NumberFormatter.jvm.cs: Performance optimizations.
+         Reuse a per thread instance to format all the primitive types. Modify
+         class accordingly so the same
+         instance can be used multiple times.
+       * Int16.cs UInt64.cs Double.cs SByte.cs UInt16.cs Byte.csDecimal.cs
+         TimeSpan.cs Int32.cs Int64.cs Single.cs UInt32.cs: Change use of
+         NumberFormatter to adapt to above changes in class interface.
+
+2008-03-31  Mark Probst  <mark.probst@gmail.com>
+
+       * MonoType.cs: Don't do CAS security checks in CheckMethodSecurity
+       for 2.1 profile.
+
+2008-03-28  Marek Safar  <marek.safar@gmail.com>
+
+       * Nullable.cs (Box): Do things explicitly and not rely on broken gmcs
+       behaviour.
+
+2008-03-25  Zoltan Varga  <vargaz@gmail.com>
+
+       * AppDomain.cs: Update after MonoMethod.InternalInvoke signature change.
+
+       * Environment.cs: Bump corlib version.
+
+       * DateTime.cs: Fix a warning.
+
+2008-03-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * String.cs: Use "this" in Split method instead of calling ToString.
+       Found using Gendarme.
+
+2008-03-06  Marek Safar  <marek.safar@gmail.com>
+
+       * MonoCustomAttrs (GetCustomAttributes): Type cannot be null with
+       typeof (MonoCustomAttrs) hack.
+
+Wed Mar 5 19:39:01 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * Type.cs: optimize GetTypeCode () for the common case
+       (fixes bug #367354).
+
+2008-03-02  Roei Erez  <roeie@mainsoft.com>
+
+       * DateTime.cs: Improve the patch supplied by James Purcell to be
+         dotnet-compatible, and add support for RoundTripKind parsing. 
+         Fixed reopened bug #352210.
+
+
+Tue Feb 26 17:50:17 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * DateTime.cs: instroduce a method that returns ticks monotonically.
+
+2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * Attribute.cs, MonoCustomAttrs: MS ignores the inherit param in 
+       PropertyInfo's ICustomAttributeProvider implementation, but not 
+       in the Attributes, so directly get the attributes from 
+       MonoCustomAttrs instead of going throught the PropertyInfo's 
+       ICustomAttributeProvider.
+       [Fixes bugs #324472 and #322464]
+
+2008-02-26  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTime.cs : fix roundtrip regression in Sys.Xml.XmlConvertTests,
+         patch by James Purcell (at #352210).
+
+2008-02-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTime.cs, DateTimeUtils.cs : make Kind value from parse result
+         as dotnet-compatible. Patch by James Purcell, fixed bug #352210.
+
+2008-02-18  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DBNull.cs : ToType(typeof(DBNull),...) should be allowed.
+
+2008-02-16  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Object.cs: Fix parameter name to match MS implementation. Found
+       using Gendarme.
+       * ValueType.cs: Fix parameter name to match MS implementation. 
+       Found using Gendarme.
+
+2008-02-14  Jb Evain  <jbevain@novell.com>
+
+       * Delegate.cs (CreateDelegate): refactor. DRY!
+
+2008-02-12  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Delegate.cs (CreateDelegate): Walk the inheritance change to find
+       matching method. Skip methods for which the return type does not match
+       the delegate. Fixes bug #360784.
+
+2008-02-11  Eyal Alaluf <eyala@mainsoft.com>
+
+       * NumberFormatter.cs: Fix ToString("R") for +-Infinity & NaN.
+
+2008-02-08  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Random.cs: Explain (and extend) special case in Next(min,max)
+
+2008-02-08  Juraj Skripsky  <js@hotfeet.ch>
+
+       * Random.cs (Next): Use rounding (via implicit conversion) only on
+       positive values. Fixes bug 359918.
+
+2008-02-03  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Environment.cs: Remove unused method found with Gendarme.
+
+2008-02-02  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Variant.cs: Fixed line endings.
+       * MonoType.cs: Fixed parameter name for ArgumentException to match MS.
+
+2008-01-29  Zoltan Varga  <vargaz@gmail.com>
+
+       * Type.cs (MakeGenericType): Fix exception message.
+
+2008-01-29  Jb Evain  <jbevain@novell.com>
+
+       * AppDomain.cs: add SL overload of DefineDynamicAssembly.
+
+2008-01-29  Marek Safar  <marek.safar@gmail.com>
+
+       * Type.cs (MakeGenericType): More argument checks. Fixes #356863 by
+        Sanghyeon Seo.
+
+2008-01-25  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * MonoType.cs (InvokeMember): Fixed exceptions arguments for last comit.
+
+2008-01-24  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * MonoType.cs (InvokeMember): Check for parameters without default value which
+       the supplied argument is Missing.Value. Fixes one of the issues of #348522.
+
+2008-01-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DateTimeOffset.cs: Avoid NRE on bad cast if null is provided to
+       Equals(object). Found using Gendarme.
+
+2008-01-16  Zoltan Varga  <vargaz@gmail.com>
+
+       * DateTimeOffset.cs: Fix warnings.
+
+2008-01-15  Stephane Delcroix  <sdelcroix@novell.com>
+
+       * DateTimeOffset.cs: ParseExact: parse f, F, s too.
+
+2008-01-15  Stephane Delcroix  <sdelcroix@novell.com>
+
+       * DateTimeOffset.cs: ParseExact: honor the DateTimeStyles parameter.
+
+2008-01-15  Zoltan Varga  <vargaz@gmail.com>
+
+       * AppDomainSetup.cs Buffer.cs Action.cs Array.cs BadImageFormatException.cs Byte.cs
+       Attribute.cs _AppDomain.cs Boolean.cs AppDomain.cs: Fix some argument names to be 
+       consistent with MS.
+
+2008-01-14  Sephane Delcroix  <sdelcroix@novell.com>
+
+       * DateTimeOffset.cs: start refactoring DoParse.
+
+2008-01-14  Zoltan Varga  <vargaz@gmail.com>
+
+       * Type.cs (GetConstructor): Use correct binding flags in type (Type[]) overload.
+       Fixes #353604.
+
+2008-01-13  Eyal Alaluf <eyala@mainsoft.com>
+
+       * NumberFormatter.cs, Double.cs, Single.cs: Fix Single & Double default
+         ToString to handle +-Infinity & NaN.
+
+2008-01-14  Sephane Delcroix  <sdelcroix@novell.com>
+
+       * DateTimeOffset.cs: ParseExact (string, string, IFormatProvider) 
+       implemented.
+
+
+2008-01-14  Zoltan Varga  <vargaz@gmail.com>
+
+       * NumberFormatter.cs: Remove some redundant assignments.
+
+2008-01-13  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * AppDomain.cs: Also fix bug #350530 for overload taking evidence and
+       args. On 1.0 profile, throw COMException to match MS and to allow
+       our unit tests to pass on MS.
+
+2008-01-13  Eyal Alaluf <eyala@mainsoft.com>
+
+       * NumberFormatter.cs: Check in redesigned implementation. Improves
+         double.ToString performance by 2-3 orders of magnitude and other
+         primitive numeric types ToString performance.
+       * NumberFormatter.jvm.cs: The TARGET_JVM managed tables for NumberFormatter
+         class for reuse if a completely managed NumberFormatter is required.
+       * Int16.cs UInt64.cs Double.cs UInt16.cs SByte.cs Byte.cs TimeSpan.cs
+         Int32.cs Int64.cs Single.cs UInt32.cs: Adapt to new NumberFormatter.
+
+2008-01-13  Zoltan Varga  <vargaz@gmail.com>
+
+       * AppDomain.cs: Check for a missing entry point in the ExecuteAssembly methods.
+       Fixes #350530.
+
+2008-01-11  Stephane Delcroix  <sdelcroix@novell.com>
+
+       * DateTimeOffset.cs: Fixes the MinValue (was equal to MaxValue)...
+
+2008-01-10  Zoltan Varga  <vargaz@gmail.com>
+
+       * Delegate.cs: Implement argument checking in CreateDelegate(Type,object,MethodInfo)
+       method. Make the CreateDelegate(Type,MethodInfo) overload calls this version.
+       Fixes #352805.
+
+2008-01-10  Stephane Delcroix  <sdelcroix@novell.com>
+
+       * DateTimeOffset.cs: chain the Parse* methods together.
+
+2008-01-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTime.cs : revert the previous fix. It caused regression on
+         the buildbot.
+
+2008-01-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTime.cs : fixed bug #352210. Kind is unspecified by default,
+         while the tick is for local time by default. This fix also involved
+         special x509 handling.
+
+2008-01-08  Marek Safar  <marek.safar@gmail.com>
+
+       * Array.cs (LastIndexOf<T>): Fixed bound checking.
+
+2008-01-06  Zoltan Varga  <vargaz@gmail.com>
+
+       * AppDomain.cs: Move the assembly loading in ExecuteAssembly and 
+       ExecuteAssemblyByName to managed to as said by the MSDN docs. Fixes #350530.
+
+       * Environment.cs: Bump corlib version.
+       
+2008-01-02  Marek Habersack  <mhabersack@novell.com>
+
+       * Array.cs: fix a typo to unbreak the build.
+
+2008-1-1  Scott Peterson  <lunchtimemama@gmail.com>
+
+       * Array.cs: Slight improvement to the quicksort algorithm.
+
 2007-12-28  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * Environment.cs: Bump corlib version.