2002-07-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / corlib / System / ChangeLog
index bc641d45a641ac08d81e27f48ee38cba1552409f..ff00aa3680e18e6e18b750d0e3f69c3a67ac6ee0 100644 (file)
-2002-04-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+2002-07-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
-       * Int32.cs:
+       * Activator.cs: reformatted. Implemented CreateInstance* methods
+       that return ObjectHandle.
+
+       * AppDomain.cs: implemented CreateInstance*AndUnwrap methods.
+
+2002-07-03  Nick Drochak  <ndrochak@gol.com>
+
+       * Decimal.cs (Divide): Short cut the case where the dividend is 0 (and
+       the divisor is not) and avoid the icall, which seems to have a bug.
+
+2002-07-03  Nick Drochak  <ndrochak@gol.com>
+
+       * Double.cs (CompareTo): Correctly handle the case where the instance
+       is NaN. Also return 0 if the values are equal.
+
+2002/07/03  Nick Drochak <ndrochak@gol.com>
+
+       * MissingMethodException: Add missing Message property
+       * MissingMemberException: Add missing Message property
+
+2002-06-30  Nick Drochak  <ndrochak@gol.com>
+
+       * Double.cs (CompareTo): Just see which is bigger.  Don't use the
+       subtraction trick, it doesn't work when the values have a diference of
+       less than one.
+
+       * Single.cs (CompareTo): same
+
+2002-06-27  Martin Baulig  <martin@gnome.org>
+
+       * UIntPtr.cs (UIntPtr.Zero): Use an explicit `u' suffix in the
+       constructor argument.  [FIXME: The implicit conversion to an
+       unsigned integer doesn't work with mcs.]
+
+2002-06-26  Martin Baulig  <martin@gnome.org>
+
+       * DecimalFormatter.cs: Removed MSTEST stuff, use `System',
+       not `S = System'.  This file now compiles with mcs.
+
+       * String.cs: Removed the already ifdef-outed __arglist Concat function
+       to make it compile with mcs.
+
+2002-06-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * IntegerFormatter.cs:
+       (FormatParse.FormatNumber): fixed custom format for negative numbers.
+
+2002-06-21  Martin Baulig  <martin@gnome.org>
+
+       * Double.cs: Replace the private `enum State' with constants since this
+       will avoid some bigger headaches in mcs.
+
+Thu Jun 20 17:51:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * TimeSpan.cs: do not pollute the namespace with the
+       System.Parser name.
+
+2002-06-18  Nick Drochak  <ndrochak@gol.com>
+
+       * ArgumentException.cs: Use the message given in the constructor when
+       accessing the Message property.  Thanks to Dietmar for the help with 
+       "base".
+
+2002-06-17  Dietmar Maurer  <dietmar@ximian.com>
+
+       * MonoType.cs: GetField is now a InternalCall
+
+2002-06-13  Nick Drochak  <ndrochak@gol.com>
+
+       * DateTime.cs: (Parse): Accept dates that have no hour,min,sec. in the
+       sortable format(s), e.g. "2002-02-25"
+
+2002/06/12  Nick Drochak <ndrochak@gol.com>
+
+       * Random.cs (Next): Fix math error.  Return a number within the range.
+
+2002-06-12  Nick Drochak  <ndrochak@gol.com>
+
+       * String.cs (IndexOf): Return -1 if start index is equal to string
+       length.
+
+2002-06-10  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (ToDouble): Remove rounding in ToDouble (float).
+       (ToType): Added null field in conversionTable to avoid
+       IndexOutOfRangeException. Changed what exceptions we throw to match
+       the spec.
+       
+2002-06-11  Nick Drochak  <ndrochak@gol.com>
+
+       * Int64.cs (Parse): Added unique strings to the messages where we throw
+       a FormatException. Needed these to debug, so just left them in since
+       they might be useful later. Fixed Currency parsing where we weren't
+       looking at CurrencyDecimalSeparator, etc.
+
+2002-06-09  Lawrence Pit  <loz@cable.a2000.nl>\r
+\r
+       * DateTime.cs: fixes to pass tests M0 to M6:\r
+               if yy pattern then year values >= 30 are in 20th century\r
+               rfc1123 pattern is always in GMT, therefor useutc must be false\r
+       made GetNow() internal static so it can be called from TimeZone.\r
+       * TimeZone.cs: removed dependency on year 2002 from initialization of \r
+       current timezone.\r
+\r
+2002-06-09  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (ToType): Rearranged what Exceptions we throw to
+       match MS behavior.
+
+2002-06-08  Duncan Mak  <duncan@ximian.com>
+
+       * Decimal.cs: Added support for the IConvertible interface.
+
+2002-06-08  Martin Baulig  <martin@gnome.org>
+
+       * Enum.cs (IsDefined): `value' may be of the enum's type itself, it
+       doesn't necessarily need to be of the enum's underlying type.
+
+2002/06/07  Nick Drochak <ndrochak@gol.com>
+
+       * String.cs: Add [Serializable] to class
+       * SByte.cs (Parse): Add [CLSCompliant(false)] to all the overloads
+
+2002-06-04  Nick Drochak  <ndrochak@gol.com>
+
+       * Double.cs (Parse): Recognize the group separator string, but still we
+       don't check the format for the proper number of digits between
+       separators. Also throw OverflowException when we get Pos or Neg
+       Infinity from runtime.
+
+2002-06-03  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (ToDouble): Fixed ToDouble (byte value).
+
+Mon Jun 3 12:18:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * Type.cs: fixed GetTypeCode.
+
+2002-06-02  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (ToInt16): use Convert.ToInt16 (int) instead of a direct
+       cast from an int so that we throw OverFlowException correctly.
+       
+       (ToInt64): Use a new 64bit version of ConvertToBase.
+       
+       (ConvertToBase): Add checks for overflow (checks Int32.MinValue
+       and Int32.MaxValue).
+
+       (ConvertFromBase64): New 64-bit version of ConvertFromBase.
+
+2002-06-02  Nick Drochak  <ndrochak@gol.com>
+
+       * Convert.cs (ToSByte): Check for special value.
+       * Single.cs (Parse): 
+       * UInt16.cs (Parse):
+       * UInt32.cs (Parse): Throw OverflowException if negative
+
+2002-06-02  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (DBNull): Point it to DBNull.Value.
+       (IsDBNull): Instead of checking typecodes, just check to see if
+       it's the same as the DBNull field.
+
+2002-06-02  Nick Drochak  <ndrochak@gol.com>
+
+       * Convert.cs (ConvertFromBase): Detect bad digits correctly.
+
+2002-06-02  Duncan Mak  <duncan@ximian.com>
+
+       * Char.cs (Parse): Simplify the Exception handling.
+
+       * Convert.cs (ToDecimal): Remove call to Math.Round () when
+       converting from a float.
+
+2002-05-30  Martin Baulig  <martin@gnome.org>
+
+       * MonoType.cs (GetInterface): Implemented.
+
+Thu May 23 17:17:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * Activator.cs: implemented CreateInstance ().
+
+2002-05-22  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (ConvertToBase): Added new 64bit version.
+       (BuildConvertedString64): New 64bit version of
+       BuildConvertedString.
+
+       This fixes bug 25068.
+
+       (ConvertFromBase): Added additional test for checking if the
+       digits are valid. Thanks to Miguel for coming up with this test.
+
+       This fixes bug 25071.
+       
+2002-05-21  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (ToType): Rearranged to fit the new layout of
+       conversionTable.
+
+       (conversionTable): Rearranged to fit the layout of the
+       System.TypeCode enum.
+
+       This should fix bug 25075.
+       
+2002-05-21  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs (ToString): Fixed the ToString methods. Previously I had
+       mixed up the two code paths, one for converting to a specific base
+       (this case), another from converting from a foreign base to base10
+       (used by ToInt16|32|64 (string, int)). This fixes bug 25068.
+
+       * Convert.cs (ToByte)
+       (ToSByte): Fixed bug 25074. Added more bits to ConvertFromBase so
+       that we won't confuse FormatException with OverflowException.
+
+2002-05-22  Lawrence Pit  <loz@cable.a2000.nl>
+
+       * Environment.cs: CommandLine missed spaces between arguments.
+       Implemented StackTrace. Returning MachineName in UserDomainName\r
+       instead of null.\r
+       \r
+Tue May 21 17:25:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * MonoCustomAttrs.cs: handle inherit argument.
+
+2002-05-21  Nick Drochak  <ndrochak@gol.com>
+
+       * Math.cs (Pow): Change icall method name and insert parameter
+       checks in for infinities and NaN.
+
+2002-05-13  Miguel de Icaza  <miguel@ximian.com>
+
+       * Double.cs (Parse): Reimplement by cleaning up the string first,
+       and then passing to strtof in the mono runtime.
+
+       * Single.cs (Parse): Use the Double implementation and cast to
+       float. 
+
+2002-05-21  Nick Drochak  <ndrochak@gol.com>
+
+       * Math.cs 
+               (Ceiling): Check for "special" values
+               (Floor): Check for "special" values
+               (Round): Fix off-by-one error on decimal shifting
+
+2002-05-20  Lawrence Pit  <loz@cable.a2000.nl>\r
+\r
+       * DateTime.cs: ToString () using "G" format specifier \r
+\r
+2002-05-19  Martin Baulig  <martin@gnome.org>
+
+       * Convert.cs (FromBase64CharArray): Do correct exception handling.
+
+2002-05-19  Martin Baulig  <martin@gnome.org>
+
+       * Convert.cs (FromBase64CharArray): Convert the char array using
+       System.Text.UTF8Encoding, not UnicodeEncoding (which is UTF-16) to
+       a byte array.
+
+2002-05-17  Miguel de Icaza  <miguel@ximian.com>
+
+       * MonoType.cs: Style changes.
+
+       * Type.cs: Style changes.
+
+2002-05-16  Piers Haken <piersh@friksit.com
+
+       * UInt64.cs: fix declaration of IConvertible.To* overrides.
+
+2002-05-16  Nick Drochak  <ndrochak@gol.com>
+
+       * BitConverter.cs (ToString): Add parameter check for invalid start 
+       index.
+
+       * Console.cs: Use AutoFlush on the StreamWriter for stdin and stdout
+       now that StreamWriter uses buffering
+
+2002-05-14  Miguel de Icaza  <miguel@ximian.com>
+
+       * Double.cs: Oops.  Also handle exponents without finding a dot.
+
+2002-05-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ChangeLog: removed empty entry at the top of the file.
+
+       * Int32.cs: made static functions used by Parse internal.
+
+       * Int64.cs:
        * UInt32.cs:
+       * UInt64.cs: removed static fucntions used by Parse and use the ones
+       in Int32.cs
+
+2002-05-12  Daniel Morgan <danmorg@sc.rr.com>
+
+       * IServiceProvider.cs: added using System
+
+2002-05-09  Daniel Morgan <danmorg@sc.rr.com>
+
+       * Single.cs: copied ToString() and Parse() methods from 
+       Double to Single and modified a tiny bit for Single.  
+       There is still a FIXME for Double and Single about
+       passing the format and provider info to the icall too.\r
+
+2002-05-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Int32.cs:
        * Int64.cs:
-       * UInt64.cs: fixed bug #23738 (hex numbers parsed wrong).
+       * UInt32.cs:
+       * UInt64.cs (Parse): don't use Char.IsNumber to test for hex digits.
+       Don't use a delegate to test for valid digits.
+
+2002-05-01  Duncan Mak  <duncan@ximian.com>
+
+       * Convert.cs: 
+       * Math.cs: Added missing CLSCompliant attributes where necessary.
+       
+2002-04-30  Duncan Mak  <duncan@ximian.com>
+
+       * ArgumentException.cs (Message): 
+       * ArgumentOutOfRangeException.cs (Message): Added.
+
+2002-04-30  Nick Drochak  <ndrochak@gol.com>
+
+       * MonoType.cs: Remove unused variable and eliminate a compiler warning.
+
+Mon Apr 29 15:32:02 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * Environment.cs: support for Exit(), CommandLine, CommandLineArgs ().
+
+2002-04-28  Duncan Mak  <duncan@ximian.com>
+
+       * DivideByZeroException.cs: Added missing serialization constructor.
+
+       * UnauthorizedAccessException.cs: Added the missing Serializable attribute.
+
+2002-04-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Math.cs: fix Floor () and Round (). Closes #23960.
+
+2002-04-27  Nick Drochak  <ndrochak@gol.com>
+
+       * Array.cs (IList.Contains): Should throw a RankException if this is 
+       called on a Rank > 1 array. Not in the docs, but this is what the 
+       MS.NET does.
+
+2002-04-26  Duncan Mak  <duncan@ximian.com>
+
+       * MissingMemberException.cs: Made the message variable 'protected'
+       instead of 'private', so that we can see it in
+       MissingMethodException and MissingFieldException.
+
+       * MissingFieldException.cs:
+       * MissingMethodException.cs: Added missing (string, string)
+       constructor, and also the Message property.
+
+2002-04-26  Martin Baulig  <martin@gnome.org>
+
+       * Enum.cs: Implemented the IConvertible methods.
+
+2002-04-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * SByte.cs: little change in Parse (string) to avoid incorrect
+       OverflowException thrown (reported by nickd).
+
+2002-04-22  Miguel de Icaza  <miguel@ximian.com>
+
+       * ValueType.cs: Add Serializable attribute.
+
+       * String.cs: ifdef-out out the __arglist Concat function until I
+       add support for that to mcs.
+
+2002-04-24     Patrik Torstensson <patrik.torstensson@labs2.com>
+
+       * AppDomain.cs (GetValue): usage of the correct icall (bug)
+
+Wed Apr 24 21:15:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * GC.cs: implement most of the methods as icalls.
+
+2002-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DecimalFormatter.cs (ToString): return correct value when the
+       decimal number is 0.
+
+2002-04-24     Patrik Torstensson <patrik.torstensson@labs2.com>
+       
+       * Type.cs (GetProperty): fixed call syntax (needs an empty array not null)
+       * MonoType.cs (GetPropertyImpl) : basic implementation (ignores types, bindingAttr, modifiers)
 
 2002-04-24  Nick Drochak  <ndrochak@gol.com>
 
        * Double.cs (Parse): Handle case where there are no digits before the 
        decimal point, such as ".1".
 
+2002-04-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Int32.cs:
+       * UInt32.cs:
+       * Int64.cs:
+       * UInt64.cs: fixed bug #23738 (hex numbers parsed wrong).
+
 2002-04-23     Patrik Torstensson <patrik.torstensson@labs2.com>
 
        * String.cs (Split): fixed invalid split of count 0 and 1.
@@ -243,9 +635,18 @@ Wed Apr 3 19:46:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
 
 2002-03-25  Miguel de Icaza  <miguel@ximian.com>
 
+       * String.cs (System): Removed internal enumeration, because
+       bootstrapping the corlib at this point does not support
+       enumerations. 
+
        * IntPtr.cs: Temporary work-around until I fix the assembly
        attributes bug.
 
+2002-03-24  Martin Baulig  <martin@gnome.org>
+
+       * Enum.cs (GetValues): According to the docu this is sorted after
+       values, not names.
+
        * String.cs (System): Removed enumeration, because it is pretty
        hard to support enumerations in /nostdlib mode for the core types.