* Char.cs (Equals): Don't access 'm_value' field of other
[mono.git] / mcs / class / corlib / System / ChangeLog
index 42d735532eace1a85c552c1c33a3da503ebf1a1d..0ba21e81911f6b2c2239609d0c068fa8eeda540c 100644 (file)
@@ -1,3 +1,423 @@
+2006-04-19  Raja R Harinath  <rharinath@novell.com>
+
+       * Char.cs (Equals): Don't access 'm_value' field of other
+       instances.  Cast directly to 'char'.
+
+2006-04-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTime.cs : implement SpecifyKind(). Patch by Thong Nguyen.
+
+2006-04-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * NumberFormatter.cs : general performance improvements. Avoid 
+         extraneous evaluation for simple formatting. Details are seen in 
+         bug #77792. Patch by Kazuki Oikawa.
+
+2006-04-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTime.cs : implement IsDaylightSavingTime().
+         Patch by Seo Sanghyeon <tinuviel@sparcs.kaist.ac.kr>.
+
+2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Array.cs :
+         added some more [ReliabilityContract].
+         removed some [CLSCompliant].
+         renamed generic method parameter names.
+
+2006-03-31  Zoltan Varga  <vargaz@gmail.com>
+
+       * Environment.cs (SetEnvironmentVariable): Implement.
+
+2006-03-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Array.cs : oops, the last change caused regression. The array must
+         be transparent to ReadOnlyCollection, not create another list.
+
+2006-03-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Array.cs : AsReadOnly<T>() in RTM returns ReadOnlyCollection<T>.
+         Thus removed ReadOnlyArray<T> and ReadOnlyArrayEnumerator<T>.
+         In 2.0 some members became non-virtual.
+
+2006-03-23  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * String.cs : oops, NET_2_0.
+
+2006-03-23  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * String.cs : added new IndexOf() and LastIndexOf() overloads, and
+         IEnumerable<char>.GetEnumerator().
+
+2006-03-21  Kornél Pál  <kornelpal@gmail.com>
+
+       * String.cs: Make memcpy4 private as it is a helper method.
+         Make memcpy internal to can be used from UnicodeEncoding.
+
+2006-03-19  Marek Safar  <marek.safar@seznam.cz>
+
+       * Nullable.cs (Compare, Equals): Added constrain as gmcs now correctly
+       reports an error here.
+
+2006-03-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Double.cs : (Parse) reject String.Empty.
+
+Wed Mar 15 16:30:51 CET 2006 Paolo Molaro <lupus@ximian.com>
+
+       * LocalDataStoreSlot.cs: implement as index in an array.
+       Implemented finalizer and allow it to remove the data stored
+       in the slot.
+
+2006-03-15  Zoltan Varga  <vargaz@gmail.com>
+
+       * Environment.cs: Bump corlib version.
+
+2006-03-10  Zoltan Varga  <vargaz@gmail.com>
+
+       * MonoCustomAttrs.cs (IsDefined): Avoid a runtime assert if a type
+       overwrites GetCustomAttributes () but not IsDefined ().
+
+2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * Environment.cs: Bumped corlib version to 48 (due to r57532)
+
+2006-03-07  Martin Baulig  <martin@ximian.com>
+
+       * String.cs (String.FormatHelper): Try getting an `ICustomFormatter'
+       from the `provider' if possible.
+
+2006-02-26  Gert Driesen  <drieseng@users.souceforge.net>
+
+       * DecimalFormatter.cs: Removed obsolete class, as it has been replaced
+       by NumberFormatter.
+       * DoubleFormatter.cs: Same.
+       * SingleFormatter.cs: Same.
+
+2006-02-21  Marek Safar  <marek.safar@seznam.cz>
+
+       * String.cs (Equals): Optimized for speed.
+
+2006-02-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TermInfoDriver.cs: patch by Mike Hull that fixes bug #77518.
+
+Mon Feb 20 11:19:54 CET 2006 Paolo Molaro <lupus@ximian.com>
+
+       * MonoType.cs: patch from Joachim Ante <joe@otee.dk> to
+       improve error messages.
+
+2006-02-15  Martin Baulig  <martin@ximian.com>
+
+       * Type.cs (Type.IsGenericInstance): Removed.
+
+2006-02-14  Ankit Jain  <jankit@novell.com>
+           Raja R Harinath  <rharinath@novell.com>
+       * ArraySegment.cs (.ctor): Fix bounds check. Rename param 'length' to
+       'count'.
+
+2006-02-11  Zoltan Varga  <vargaz@gmail.com>
+
+       * TermInfoDriver.cs (CreateKeyInfoFromInt): Fix handling of tab and its
+       friends.
+       
+       * TermInfoDriver.cs (GetWindowDimensions): Obtain the exact terminal
+       size using an icall.
+       (GetCursorPosition): Convert the row and column to 0 based indexing. 
+       Also fix reading of large values.
+       (CreateKeyInfoFromInt): Convert LF to ConsoleKey.Enter.
+
+       * ConsoleDriver.cs (GetTtySize): New icall.
+
+2006-02-10  Zoltan Varga  <vargaz@gmail.com>
+
+       * Array.cs: Fix some methods which previously returned Nullable<T>.
+
+       * Nullable.cs: Add T: struct constraint and fix constructor.
+
+Fri Feb 3 11:01:46 CET 2006 Paolo Molaro <lupus@ximian.com>
+
+       * String.cs: changed StartsWith/EndsWith to faster versions.
+
+2006-02-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * String.cs: implement 2.0 StartsWith and EndsWith new overloads. Based
+       on a patch by Thong Nguyen.
+
+2006-01-31  Zoltan Varga  <vargaz@gmail.com>
+
+       * String.cs: Implement one of the new net 2.0 Split methods.
+
+2006-01-31  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * String.cs : (LastIndexOf) Fixed bug #77412. It should not expect
+         that value length is bigger than its index.
+
+2006-01-27  Zoltan Varga  <vargaz@gmail.com>
+
+       * DateTime.cs: Add some 2.0 methods and properties.
+
+2006-01-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Console.cs: if InternalCodePage returns -1, use the default encoding.
+       Also match the UTF8 one properly. Patch by wall_john@sohu.com.
+
+2006-01-19  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ModuleHandle.cs : GetPEKind() is not public in 2.0 RTM.
+
+2006-01-16  Alp Toker  <alp@atoker.com>
+
+       * TimeSpan.cs: Simple implementation of NET 2.0 TryParse() using
+       try/catch
+
+2006-01-05  Raja R Harinath  <rharinath@novell.com>
+
+       Fix regressions introduced by the fix to #71300.
+       * Activator.cs (CreateInstance): Use Binder.SelectMethod instead
+       of home-grown FindBestCtor.
+       (FindBestCtor): Delete.
+
+2006-01-03  Zoltan Varga  <vargaz@gmail.com>
+
+       * Nullable.cs: Update to Net 2.0 RTM.
+       
+       * Nullable.cs: Add comments about runtime dependencies on the layout of
+       this type.
+
+2006-01-02  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Activator.cs: Now find the best ctor when null are used for 
+       paramaters. Fix bug #71300. Added checks for specific types (void,
+       TypedReference, ArgIterator and RuntimeArgumentHandle).
+       * Console.cs: Re-use Environment logic to detect Windows.
+       * Type.cs: Re-applied r45150 as the real bug was in Activator.
+
+2006-01-02  Zoltan Varga  <vargaz@gmail.com>
+
+       * Activator.cs: Add a 'params' to one of the CreateInstance overloads.
+
+       * RuntimeTypeHandle.cs RuntimeMethodHandle.cs RuntimeFieldHandle.cs:
+       Add == and != operators.
+
+2005-12-23  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Environment.cs: Bump corlib version to 46.
+       * TimeZone.cs: Partial fix for #76094. Added [Serializable] attribute 
+       and renamed internal CurrentTimeZone class to CurrentSystemTimeZone 
+       (like MS). This allows serialization roundtrip to work in Mono but 
+       there's still an issue when deserializing a stream from MS. 
+
+2005-12-23  Sebastien Pouliot  <sebastien@ximian.com> 
+       * NumberFormatter.cs: Fixed rounding for float and the string output
+       now includes all the precision (not counting preceding zeros). This
+       fix the DecimalTest.TestConstructSingleRounding_NotWorking test cases.
+
+2005-12-21  Sebastien Pouliot  <sebastien@ximian.com> 
+       * Array.cs: Fixed Sort<T> with IComparable (generic or not) bug #77039
+
+2005-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * Array.cs: Added the Sort<T> methods (generics). 
+
+2005-12-19  Sebastien Pouliot  <sebastien@ximian.com> 
+       * Array.cs: Fixed BinarySearch when the array is empty (#77030). Added
+       some null check which throws ArgumentNullException under 2.0.
+
+2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DateTime.cs: Added MonoTODO to ctor accepting a Calandar instance.
+       * Double.cs: Under 2.0 throw a ArgumentException when parsing with
+        NumberStyles.AllowHexSpecifier. Partial fix for #72221. Added the
+       second, simpler, TryParse method (2.0).
+       * Single.cs: Added the TryParse methods for 2.0.
+
+2005-12-15  Raja R Harinath  <rharinath@novell.com>
+
+       * Type.cs (IsGenericType): Make virtual.
+
+2005-12-08  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * AppDomainSetup.cs: ApplicationBase throw exception on get (not on 
+       set). New behaviour is more like MS - but most issues (unit tests)
+       were really path issues. Fix bug #71291.
+       * DateTime.cs: Add more information when throwing an exception in 
+       ctor(long). Useful for debugging.
+
+2005-12-07  Zoltan Varga  <vargaz@gmail.com>
+
+       * Single.cs Double.cs: Fix warnings.
+
+2005-12-06  Sebastien Pouliot  <sebastien@ximian.com> 
+       * Convert.cs: ToBase64String method didn't use the option parameter so
+       we always included new lines. Fix bug #76876.
+
+2005-12-06  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * AppDomainSetup.cs: Added missing ComVisible and removed LAMESPEC 
+       (the docs were fixed).
+       * NumberFormatter.cs: Fixed the "NotWorking" case where 1.15 was 
+       misrounded compared to MS implementation. Extra care is required when
+       dealing with the extra 2 digits information (e.g. double precision is
+       15 digits but 17 are kept - for a reason ;-)
+
+2005-12-05  Ben Maurer  <bmaurer@ximian.com>
+
+       * Environment.cs: Bump version
+
+       * Nullable.cs: New Box and Unbox methods for the jit
+
+2004-12-05  Peter Dennis Bartok <pbartok@novell.com>
+
+       * Enum.cs: Properly handle "No bits set" case even if the sorted numbers
+         list does not have enum value 0 as the first item. Fixes #76921
+
+2005-12-05  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * AppDomain.cs: CreateComInstanceFrom isn't static in any profile.
+
+Mon Dec 5 15:14:59 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * Double.cs: remove unused icall.
+       * BitConverter.cs: handle double binary format on ARM FPA.
+
+2005-12-02  Alp Toker  <alp@atoker.com>
+
+       * MonoType.cs:
+       * Type.cs: DeclaringMethod should return MethodBase, not MethodInfo
+
+2005-12-02  Alp Toker  <alp@atoker.com>
+
+       * AppDomain.cs: ReflectionOnlyPreBindAssemblyResolve renamed to
+       ReflectionOnlyAssemblyResolve in 2.0 final
+
+2005-12-01  Alp Toker  <alp@atoker.com>
+
+       * String.cs: Add static and non-static Equals(... StringComparison) for
+       2.0.
+
+2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TermInfoDriver.cs: special case for the escape key. Fixes bug #76781.
+
+2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TermInfoDriver.cs: if the cursor_address capability contains a %i, we
+       have to add 1 to x and y when setting the cursor position.
+       Fixes bug #76856.
+
+       * Convert.cs: remove unused variables.
+
+Wed Nov 30 12:14:20 EST 2005 Paolo Molaro <lupus@ximian.com>
+
+       * NumberFormatter.cs: work around arch-specific ulong cast behaviour
+       with large numbers.
+
+Tue Nov 29 05:38:37 EST 2005 Paolo Molaro <lupus@ximian.com>
+
+       * Convert.cs: fix endianess issue when converting to base-8
+       format. All the base code would need a rewrite for efficience.
+
+2005-11-25  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * String.cs: Added support for Compare(... StringComparison) in 2.0.
+
+2005-11-25  Alp Toker  <alp@atoker.com>
+
+       * Type.cs (IsVisible): New 2.0 property, implemented recursively.
+
+2005-11-17  Dick Porter  <dick@ximian.com>
+
+       * Environment.cs: Incremented corlib version
+
+2005-11-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * Int32.cs, UInt32.cs, Int16.cs, UInt16.cs, Int64.cs,
+       UInt64.cs, Byte.cs, SByte.cs, Double.cs : Modify internal Parse
+       methods to return the exception as an out parameter,
+       instead of throwing it. This will be of special help
+       to TryParse methods.
+       * Environment.cs: Update corlib version to 42.
+       
+2005-11-14  Raja R Harinath  <rharinath@novell.com>
+
+       * EventHandler.cs (EventHandler<TEventArgs>): Rename from EventHandler<T>.
+
+2005-11-11  Zoltan Varga  <vargaz@gmail.com>
+
+       * Type.cs (GetPseudoCustomAttributes): Return ComImportAttribute as well.
+
+2005-11-11  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * TimeZone.cs: Removed incorrect double-check lock and unneeded
+       hashtable access.
+
+2005-11-11  Marek Safar  <marek.safar@seznam.cz>
+
+       * Type.cs: IsNested implemented, signature fixes.
+
+2005-11-11  Raja R Harinath  <rharinath@novell.com>
+
+       * Array.cs (Resize<T>) [2-argument variant]: Fix nullref.
+
+2005-11-10  Zoltan Varga  <vargaz@gmail.com>
+
+       * Array.cs (Resize<T>): New internal method which takes a 'length' argument
+       as well to avoid copying the whole array.
+
+2005-11-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Int64.cs : ditto for long.
+
+2005-11-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Int32.cs : Parse("2147483648", format_provider) should be rejected.
+
+2005-11-09  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * AttributeTargets.cs: Added [ComVisible (true)] and [Serializable] 
+       in 2.0 profile.
+       * Base64FormattingOptions.cs: Added missing [Flags] attribute.
+       * ConsoleKey.cs: Removed old BackSpace and WhiteSpace (they were 
+       already replaced by Backspace and Whitespace)
+       * DateTime.cs: Moved DayOfWeek enum to it's own file.
+       * DateTimeKind.cs: New (2.0) enum.
+       * DayOfWeek.cs: New file (extracted from DateTime.cs).
+       * DomainManagerInitializationFlags.cs: Removed extra [Serializable].
+       * EnvironmentVariableTarget.cs: Added [ComVisible (true)] and fixed 
+       values (-1 to all of them).
+       *  Exception.cs: Added a LinkDemand for SerializationFormatter on
+       GetObjectData method.
+       *  LoaderOptimization.cs: Added [ComVisible (true)] and [Serializable] 
+       on enum and added [Obsolete] to DomainMask and DisallowBindings in 2.0
+       profile.
+       * PlatformID.cs: Added [ComVisible (true)] and [Serializable] in 2.0 
+       profile.
+       * StringComparison.cs: New (2.0) enum (needed for Uri).
+       * TermInfoDriver.cs: Fixed BackSpace -> Backspace (see ConsoleKey.cs).
+       * TypeCode.cs: Added [ComVisible (true)] and [Serializable] in 2.0 
+       profile.
+
+2005-11-08  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Type.cs : I forgot to mention, some '(' were missing in the
+         improved patch ;-)
+
+2005-11-08  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Type.cs (GetPseudoCustomAttributes): Check for TypeAttributes.Serializable instead of
+       IsSerializable property, since the latter returns true for delegates/enums.
+
+2005-11-05  Kornél Pál  <kornelpal@hotmail.com>
+
+       * Environment.cs: Use Consts.RuntimeVersion as Environment.Version that
+         makes maintenance easier.
+
 2005-10-24  Martin Baulig  <martin@ximian.com>
 
        * Type.cs (Type.IsGenericTypeDefinition): Make this virtual.