* AmbiguousMatchException.cs: Added serialization constructor.
[mono.git] / mcs / class / corlib / System.Reflection / ChangeLog
index a50cee639b412a31ddb3a63ca373887c3f8a78a3..72cd7be796e18ea3c1e213aaca52080f0b2d95e9 100644 (file)
@@ -1,3 +1,424 @@
+2003-12-11  Lluis Sanchez Gual <lluis@ximian.com>
+       
+       * AmbiguousMatchException.cs: Added serialization constructor.
+       
+2003-12-08  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoGenericParam): New internal class;
+       derives from MonoType.  
+
+2003-12-08  Patrik Torstensson <p@rxc.se>
+
+       * Binder.cs: Added internal helpers to get derived level and select the 
+       most derived methodbase (used in GetMethodImpl)
+
+2003-11-25  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Assembly.cs (LoadWithPartialName): Return null instead of throwing
+       an exception to match MS behavior.
+
+2003-11-24  Zoltan Varga  <vargaz@freemail.hu>
+
+       * MonoMethod.cs: Add missing constructor.
+
+2003-11-21  Zoltan Varga  <vargaz@freemail.hu>
+
+       * MethodBase.cs (Invoke): Make this virtual under NET 1.2.
+
+2003-11-16  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoGenericInst.inflate): Call
+       `parent.inflate (parent,...)' instead of
+       `parent.inflate (reflected,...)'.
+
+2003-11-16  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Assembly.cs (InternalGetAssemblyName): New icall.
+
+       * AssemblyName.cs (GetAssemblyName): Implement this without loading
+       the assembly in question. Fixes #51035.
+
+2003-11-14  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoGenericInst): Added
+       `MonoGenericInst[] interfaces' field.  This is only used for
+       interface types.
+       (MonoGenericInst.inflate): If we're an interface type, add the
+       methods from all interfaces we inherit.
+
+2003-11-14  Zoltan Varga  <vargaz@freemail.hu>
+
+       * AssemblyNameFlags.cs MethodAttributes.cs: Add new enumerated values 
+       from NET 1.1.
+       
+       * *.cs: Add missing attributes.
+
+2003-11-11  Todd Berman  <tberman@gentoo.org>
+
+       * AssemblyName.cs (FullName): Fixed to include a proper PublicKeyToken.
+
+2003-11-11  Zoltan Varga  <vargaz@freemail.hu>
+
+       * MonoMethod.cs: Implement CallingConvention member.
+
+2003-11-10  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Assembly.cs (InternalGetType): Add a 'module' argument so this
+       method can be used from Module as well.
+
+       * Module.cs (GetType): Implement.
+
+       * Module.cs (GetTypes): Implement.
+
+       * Module.cs: Remove some [MonoTODO] attributes from implemented methods.
+2003-11-08  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoInflatedMethod, MonoInflatedCtor): Added
+       a private `IntPtr ginst' field.
+       (MonoGenericInst.IsValueTypeImpl, inflate): Allow interfaces.
+
+2003-11-02  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoGenericInst.initialize): Include members
+       from our parent classes in the `methods', `ctors' and `fields'
+       arrays.  When inflating them, reflection now sets their
+       `declaring_type' and `reflected_type' fields.
+       (MonoInflatedMethod, MonoInflatedCtor): Added
+       `MonoGenericInst declaring_type' and `MonoGenericInst reflected_type'
+       fields and override the `DeclaringType' and `ReflectedType' properties.
+
+2003-11-02  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoGenericInst.IsValueTypeImpl): Override this.
+
+2003-10-31  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoInflatedField): New internal class.
+       (MonoGenericInst.GetFields): Override this method and inflate
+       the fields.
+
+       * MonoField.cs: Don't make this class sealed.
+
+2003-10-30  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoInflatedMethod, MonoInflatedCtor): New
+       internal classes.
+
+2003-10-25  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs: New internal class.
+
+2003-10-18  Martin Baulig  <martin@ximian.com>
+
+       * MethodInfo.cs (MethodInfo.GetGenericArguments): Make this method
+       abstract; use an interncall in MonoMethod and a custom
+       implementation in MethodBuilder.        
+
+2003-10-17  Pedro Martínez Juliá  <yoros@wanadoo.es>
+
+       * MonoEvent.cs: implement ToString method as in MS.NET.
+
+       * MonoMethod.cs: fix some differences between mono and MS.NET
+       implementation of ToString.
+
+2003-10-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * AssemblyName.cs: Fix Version property when some version fields are
+       undefined.
+
+2003-10-17  Martin Baulig  <martin@ximian.com>
+
+       * MethodInfo.cs (MethodInfo.GetGenericArguments): New method.
+       (MethodInfo.BindGenericParameters): New method.
+
+2003-10-16  Martin Baulig  <martin@ximian.com>
+
+       * MethodInfo.cs (MethodInfo.IsGenericMethodDefinition): New
+       property.       
+
+2003-08-08  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * ParameterInfo.cs: Modified constructor of ParameterInfo for
+         the return type of a method. Since parameter positions are
+         zero-based, the position of the return type must be is -1.
+
+2003-08-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * TargetInvocationException.cs: Fixed signature
+
+2003-07-24  Miguel de Icaza  <miguel@ximian.com>
+
+       * TypeDelegator.cs: Added generics stubs.
+
+2003-07-21  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * ParameterInfo.cs: Position is zero-based in ParameterInfo.
+         Set the right position value when getting from ParameterBuilder.
+
+Thu Jul 17 17:26:59 CEST 2003 Paolo Molaro <lupus@ximian.com>
+
+       * FieldInfo.cs, MonoField.cs: cleanups. Cache some info and use
+       finer-grained icalls. Requires a matching runtime.
+
+2003-07-11  Zoltan Varga  <vargaz@freemail.hu>
+
+       * AssemblyFlagsAttribute.cs: Added new constructor from NET 1.1.
+
+       * AssemblyFlagsAttribute.cs: Added new property from NET 1.1.
+
+2003-07-10  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Assembly.cs: Implemented ImageRuntimeVersion property from NET 1.1.
+
+Mon Jun 30 19:12:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
+
+       * Pointer.cs: implemented.
+
+2003-06-15  Zoltan Varga  <vargaz@freemail.hu>
+
+       * EventInfo.cs: Implement IsSpecialName.
+
+2003-06-10  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Module.cs (Mono_GetGuid): New method to return the GUID of the
+       module.
+
+2003-05-21  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Module.cs: Implement GetField and its friends.
+
+2003-05-20  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Assembly.cs (GetManifestResourceStream): Moved handling of 
+       linked resources into managed code using the newly implemented
+       GetManifestResourceInfo () method.
+
+2003-05-19  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Module.cs: Implemented IsResource.
+
+       * Assembly.cs: Implemented GetManifestResourceInfo, GetModules,
+       GetModule, GetLoadedModules methods.
+       * Assembly.cs (GetManifestResourceStream): Added support for 
+       resources in extern assemblies.
+
+2003-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Assembly.cs: fixed bug #42833.
+
+2003-05-11  Miguel de Icaza  <miguel@ximian.com>
+
+       * Binder.cs (ChangeType): Very simplistic change.  Am not sure if
+       it is correct, but it makes RemotingCorba move along a bit more
+       (Remoting.Corba invokes Binder.ConvertArgs, which calls
+       Binder.ChangeType with an Attribute [] to Object []).
+
+2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Binder.cs:
+       (check_type): fixed bug #41655.
+
+2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Assembly.cs: implemented GetSatelliteAssembly.
+
+Fri Apr 11 13:06:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
+
+       * Assembly.cs: added GetNamespaces() icall.
+
+2003-03-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * FieldInfo.cs (GetFieldFromHandle): Implemented.
+
+2003-03-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Assembly.cs: added missing stuff. Only ModuleResolve event is left
+       out to avoid changing MonoReflectionAssembly by now.
+       * ModuleResolveEventHandler.cs: delegate.
+
+2003-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TargetInvocationException.cs: added serialization ctor.
+
+2003-02-18  Martin Baulig  <martin@ximian.com>
+
+       * Assembly.cs (MonoDebugger_GetMethodToken): New method to get a
+       method's metadata token.
+
+2003-02-04  Sebastien Pouliot  <spouliot@videotron.ca>
+
+       * Module.cs: Corrected indentation for class.
+
+2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Binder.cs:
+       (check_type): return true when the target type is object and the source
+       is a value type.
+
+2003-02-03 Patrik Torstensson
+
+       * Binder.cs: minimize locking time in DefaultBinder.
+
+2003-02-01  Sebastien Pouliot  <spouliot@videotron.ca>
+
+       * Module.cs: Oups - not implemented. Added MonoTODO to most methods
+       so it's real status get reflected correctly on the web site.
+
+2003-01-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MonoMethod.cs: implemented GetBaseDefinition ().
+
+2003-01-28  Patrik Torstensson
+       * MonoMethod.cs: Added support for serialization for MonoMethod and MonoCMethod
+       * ReflectionSerializationHolder.cs: Support class for serialization
+
+2003-01-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * ParameterInfo.cs: modified constructor so it allows the 
+       ParameterBuilder to be null and add a 'position' argument which will
+       be used when pb is null.
+
+2003-01-16  Lluis Sanchez Gual <lsg@ctv.es>
+
+       * Assembly.cs: added serialization support.
+
+Sat Jan 4 18:26:41 CET 2003 Paolo Molaro <lupus@ximian.com>
+
+       * MonoMethod.cs: propagate exceptions from the internal invoke
+       code that need to be propagated.
+
+Sat Jan 4 18:04:07 CET 2003 Paolo Molaro <lupus@ximian.com>
+
+       * Binder.cs: throw an exception if the number of arguments 
+       when invoking a method is incorrect.
+
+Thu Jan 2 19:04:58 CET 2003 Paolo Molaro <lupus@ximian.com>
+
+       * Binder.cs: In SelectMethod() look for an exact match first.
+
+2003-01-01  Rachel Hestilow <hestilow@ximian.com>
+
+       * MonoField.cs (SetValue): Fix logic typo. Check that obj is
+       non-null only for the non-static case.
+
+2002-12-30  Sebastien Pouliot <spouliot@videotron.ca>
+
+       * AssemblyName.cs: Fixed null cultureinfo in FullName (as reported by 
+       Zoltan).
+
+2002-12-23  Sebastien Pouliot <spouliot@videotron.ca>
+
+       * AssemblyName.cs: GetPublicKey now return an empty array (not null)
+       when an assembly isn't signed with a StrongName (to match MS 
+       implementation) and null when no assembly is referenced. Also removed 
+       commented code (no bug reported so it was probably not used).
+
+Thu Dec 19 16:43:19 CET 2002 Paolo Molaro <lupus@ximian.com>
+
+       * MonoMethod.cs, ParameterInfo.cs: return a custom attribute
+       provider for the return type of a method.
+
+2002-12-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AssemblyName.cs: little fix in FullName.
+
+2002-12-07  Sebastien Pouliot <spouliot@videotron.ca>
+
+       * AssemblyName.cs: Added missing methods/interfaces. Fixed some
+       code to match the MS Framework.
+       * StrongNameKeyPair.cs: Completed the "visible" implementation.
+       There must be some internal methods to allow signing with the key.
+
+2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * EventInfo.cs: implemented (Add|Remove)EventHandler.
+
+Mon Nov 18 17:52:56 CET 2002 Paolo Molaro <lupus@ximian.com>
+
+       * Assembly.cs: implemented GetManifestResourceStream (Type type,
+       * String name).
+
+2002-11-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Assembly.cs: changed name of GetType (string, bool, bool) to
+       InternalGetType.
+
+2002-10-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TargetInvocationException.cs: modified default message.
+
+2002-10-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MonoProperty.cs:
+       * PropertyInfo.cs: fixed bug #31535.
+
+2002-09-27  Martin Baulig  <martin@gnome.org>
+
+       * Assembly.cs (Assembly.GetReferencedAssemblies): Implemented.
+
+2002-09-24  Martin Baulig  <martin@gnome.org>
+
+       * Assembly.cs (MonoDebugger_GetType): New method to get a Type
+       from its metadata token.  This should only be used by the debugger.
+
+2002-09-21  Martin Baulig  <martin@gnome.org>
+
+       * Assembly.cs (MonoDebugger_GetLocalTypeFromSignature): New method to
+       get the type of a local variable from its signature.  This should only
+       be used by the debugger.
+
+2002-09-20  Martin Baulig  <martin@gnome.org>
+
+       * Assembly.cs (MonoDebugger_GetMethod): New method to get a MethodBase
+       from its metadata token.  This should only be used by the debugger.
+
+Wed Sep 11 12:50:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * Binder.cs: more default binder implementation.
+
+       * FieldInfo.cs, MonoField.cs: fixed SetValue () implementation.
+       * MonoMethod.cs: use the binder in the Invoke () implementation.
+       Implemented custom attributes methods and ToString for constructors.
+
+Thu Sep 5 20:36:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * Binder.cs: finished the Binder class and implemented the default
+       binder.
+
+2002-09-03  Martin Baulig  <martin@gnome.org>
+
+       * Assembly.cs (Assembly.Location): Implemented.
+
+2002-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MonoField.cs:
+       (GetValue): allow obj to be null (used for static fields).
+
+2002-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MonoField.cs: GetValue renamed to GetValueInternal. Added check for
+       null.
+
+Wed Aug 21 13:03:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * Assembly.cs: GetEntryAssembly patch by Tomi Pakarinen 
+       <tomi.pakarinen@welho.com>.
+
+2002-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Assembly.cs: FullName now returns a proper string instead of
+       something like 'file://...'.
+
+       * AssemblyName.cs: added missing ToString method.
+
+2002-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FieldInfo.cs: implemented SetValue.
+
+Wed Aug 14 17:37:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * MonoEvent.cs, MonoMethod.cs: implemented ReflectedType.
+
 2002-08-14  Dick Porter  <dick@ximian.com>
 
        * Assembly.cs: Stub out GetSatelliteAssembly