2003-10-17 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection / ChangeLog
1 2003-10-17  Martin Baulig  <martin@ximian.com>
2
3         * MethodInfo.cs (MethodInfo.GetGenericArguments): New method.
4         (MethodInfo.BindGenericParameters): New method.
5
6 2003-10-16  Martin Baulig  <martin@ximian.com>
7
8         * MethodInfo.cs (MethodInfo.IsGenericMethodDefinition): New
9         property.       
10
11 2003-08-08  Lluis Sanchez Gual  <lluis@ximian.com>
12
13         * ParameterInfo.cs: Modified constructor of ParameterInfo for
14           the return type of a method. Since parameter positions are
15           zero-based, the position of the return type must be is -1.
16
17 2003-08-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
18
19         * TargetInvocationException.cs: Fixed signature
20
21 2003-07-24  Miguel de Icaza  <miguel@ximian.com>
22
23         * TypeDelegator.cs: Added generics stubs.
24
25 2003-07-21  Lluis Sanchez Gual  <lluis@ximian.com>
26
27         * ParameterInfo.cs: Position is zero-based in ParameterInfo.
28           Set the right position value when getting from ParameterBuilder.
29
30 Thu Jul 17 17:26:59 CEST 2003 Paolo Molaro <lupus@ximian.com>
31
32         * FieldInfo.cs, MonoField.cs: cleanups. Cache some info and use
33         finer-grained icalls. Requires a matching runtime.
34
35 2003-07-11  Zoltan Varga  <vargaz@freemail.hu>
36
37         * AssemblyFlagsAttribute.cs: Added new constructor from NET 1.1.
38
39         * AssemblyFlagsAttribute.cs: Added new property from NET 1.1.
40
41 2003-07-10  Zoltan Varga  <vargaz@freemail.hu>
42
43         * Assembly.cs: Implemented ImageRuntimeVersion property from NET 1.1.
44
45 Mon Jun 30 19:12:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
46
47         * Pointer.cs: implemented.
48
49 2003-06-15  Zoltan Varga  <vargaz@freemail.hu>
50
51         * EventInfo.cs: Implement IsSpecialName.
52
53 2003-06-10  Zoltan Varga  <vargaz@freemail.hu>
54
55         * Module.cs (Mono_GetGuid): New method to return the GUID of the
56         module.
57
58 2003-05-21  Zoltan Varga  <vargaz@freemail.hu>
59
60         * Module.cs: Implement GetField and its friends.
61
62 2003-05-20  Zoltan Varga  <vargaz@freemail.hu>
63
64         * Assembly.cs (GetManifestResourceStream): Moved handling of 
65         linked resources into managed code using the newly implemented
66         GetManifestResourceInfo () method.
67
68 2003-05-19  Zoltan Varga  <vargaz@freemail.hu>
69
70         * Module.cs: Implemented IsResource.
71
72         * Assembly.cs: Implemented GetManifestResourceInfo, GetModules,
73         GetModule, GetLoadedModules methods.
74         * Assembly.cs (GetManifestResourceStream): Added support for 
75         resources in extern assemblies.
76
77 2003-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
78
79         * Assembly.cs: fixed bug #42833.
80
81 2003-05-11  Miguel de Icaza  <miguel@ximian.com>
82
83         * Binder.cs (ChangeType): Very simplistic change.  Am not sure if
84         it is correct, but it makes RemotingCorba move along a bit more
85         (Remoting.Corba invokes Binder.ConvertArgs, which calls
86         Binder.ChangeType with an Attribute [] to Object []).
87
88 2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
89
90         * Binder.cs:
91         (check_type): fixed bug #41655.
92
93 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
94
95         * Assembly.cs: implemented GetSatelliteAssembly.
96
97 Fri Apr 11 13:06:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
98
99         * Assembly.cs: added GetNamespaces() icall.
100
101 2003-03-17  Zoltan Varga  <vargaz@freemail.hu>
102
103         * FieldInfo.cs (GetFieldFromHandle): Implemented.
104
105 2003-03-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
106
107         * Assembly.cs: added missing stuff. Only ModuleResolve event is left
108         out to avoid changing MonoReflectionAssembly by now.
109         * ModuleResolveEventHandler.cs: delegate.
110
111 2003-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
112
113         * TargetInvocationException.cs: added serialization ctor.
114
115 2003-02-18  Martin Baulig  <martin@ximian.com>
116
117         * Assembly.cs (MonoDebugger_GetMethodToken): New method to get a
118         method's metadata token.
119
120 2003-02-04  Sebastien Pouliot  <spouliot@videotron.ca>
121
122         * Module.cs: Corrected indentation for class.
123
124 2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
125
126         * Binder.cs:
127         (check_type): return true when the target type is object and the source
128         is a value type.
129
130 2003-02-03 Patrik Torstensson
131
132         * Binder.cs: minimize locking time in DefaultBinder.
133
134 2003-02-01  Sebastien Pouliot  <spouliot@videotron.ca>
135
136         * Module.cs: Oups - not implemented. Added MonoTODO to most methods
137         so it's real status get reflected correctly on the web site.
138
139 2003-01-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
140
141         * MonoMethod.cs: implemented GetBaseDefinition ().
142
143 2003-01-28  Patrik Torstensson
144         * MonoMethod.cs: Added support for serialization for MonoMethod and MonoCMethod
145         * ReflectionSerializationHolder.cs: Support class for serialization
146
147 2003-01-17  Zoltan Varga  <vargaz@freemail.hu>
148
149         * ParameterInfo.cs: modified constructor so it allows the 
150         ParameterBuilder to be null and add a 'position' argument which will
151         be used when pb is null.
152
153 2003-01-16  Lluis Sanchez Gual <lsg@ctv.es>
154
155         * Assembly.cs: added serialization support.
156
157 Sat Jan 4 18:26:41 CET 2003 Paolo Molaro <lupus@ximian.com>
158
159         * MonoMethod.cs: propagate exceptions from the internal invoke
160         code that need to be propagated.
161
162 Sat Jan 4 18:04:07 CET 2003 Paolo Molaro <lupus@ximian.com>
163
164         * Binder.cs: throw an exception if the number of arguments 
165         when invoking a method is incorrect.
166
167 Thu Jan 2 19:04:58 CET 2003 Paolo Molaro <lupus@ximian.com>
168
169         * Binder.cs: In SelectMethod() look for an exact match first.
170
171 2003-01-01  Rachel Hestilow <hestilow@ximian.com>
172
173         * MonoField.cs (SetValue): Fix logic typo. Check that obj is
174         non-null only for the non-static case.
175
176 2002-12-30  Sebastien Pouliot <spouliot@videotron.ca>
177
178         * AssemblyName.cs: Fixed null cultureinfo in FullName (as reported by 
179         Zoltan).
180
181 2002-12-23  Sebastien Pouliot <spouliot@videotron.ca>
182
183         * AssemblyName.cs: GetPublicKey now return an empty array (not null)
184         when an assembly isn't signed with a StrongName (to match MS 
185         implementation) and null when no assembly is referenced. Also removed 
186         commented code (no bug reported so it was probably not used).
187
188 Thu Dec 19 16:43:19 CET 2002 Paolo Molaro <lupus@ximian.com>
189
190         * MonoMethod.cs, ParameterInfo.cs: return a custom attribute
191         provider for the return type of a method.
192
193 2002-12-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
194
195         * AssemblyName.cs: little fix in FullName.
196
197 2002-12-07  Sebastien Pouliot <spouliot@videotron.ca>
198
199         * AssemblyName.cs: Added missing methods/interfaces. Fixed some
200         code to match the MS Framework.
201         * StrongNameKeyPair.cs: Completed the "visible" implementation.
202         There must be some internal methods to allow signing with the key.
203
204 2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
205
206         * EventInfo.cs: implemented (Add|Remove)EventHandler.
207
208 Mon Nov 18 17:52:56 CET 2002 Paolo Molaro <lupus@ximian.com>
209
210         * Assembly.cs: implemented GetManifestResourceStream (Type type,
211         * String name).
212
213 2002-11-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
214
215         * Assembly.cs: changed name of GetType (string, bool, bool) to
216         InternalGetType.
217
218 2002-10-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
219
220         * TargetInvocationException.cs: modified default message.
221
222 2002-10-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
223
224         * MonoProperty.cs:
225         * PropertyInfo.cs: fixed bug #31535.
226
227 2002-09-27  Martin Baulig  <martin@gnome.org>
228
229         * Assembly.cs (Assembly.GetReferencedAssemblies): Implemented.
230
231 2002-09-24  Martin Baulig  <martin@gnome.org>
232
233         * Assembly.cs (MonoDebugger_GetType): New method to get a Type
234         from its metadata token.  This should only be used by the debugger.
235
236 2002-09-21  Martin Baulig  <martin@gnome.org>
237
238         * Assembly.cs (MonoDebugger_GetLocalTypeFromSignature): New method to
239         get the type of a local variable from its signature.  This should only
240         be used by the debugger.
241
242 2002-09-20  Martin Baulig  <martin@gnome.org>
243
244         * Assembly.cs (MonoDebugger_GetMethod): New method to get a MethodBase
245         from its metadata token.  This should only be used by the debugger.
246
247 Wed Sep 11 12:50:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
248
249         * Binder.cs: more default binder implementation.
250
251         * FieldInfo.cs, MonoField.cs: fixed SetValue () implementation.
252         * MonoMethod.cs: use the binder in the Invoke () implementation.
253         Implemented custom attributes methods and ToString for constructors.
254
255 Thu Sep 5 20:36:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
256
257         * Binder.cs: finished the Binder class and implemented the default
258         binder.
259
260 2002-09-03  Martin Baulig  <martin@gnome.org>
261
262         * Assembly.cs (Assembly.Location): Implemented.
263
264 2002-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
265
266         * MonoField.cs:
267         (GetValue): allow obj to be null (used for static fields).
268
269 2002-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
270
271         * MonoField.cs: GetValue renamed to GetValueInternal. Added check for
272         null.
273
274 Wed Aug 21 13:03:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
275
276         * Assembly.cs: GetEntryAssembly patch by Tomi Pakarinen 
277         <tomi.pakarinen@welho.com>.
278
279 2002-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
280
281         * Assembly.cs: FullName now returns a proper string instead of
282         something like 'file://...'.
283
284         * AssemblyName.cs: added missing ToString method.
285
286 2002-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
287
288         * FieldInfo.cs: implemented SetValue.
289
290 Wed Aug 14 17:37:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
291
292         * MonoEvent.cs, MonoMethod.cs: implemented ReflectedType.
293
294 2002-08-14  Dick Porter  <dick@ximian.com>
295
296         * Assembly.cs: Stub out GetSatelliteAssembly
297
298 2002-08-12  Tim Coleman <tim@timcoleman.com>
299         * MonoProperty.cs:
300                 Allow multiple parameters for GetValue ()
301
302 Thu Aug 8 13:05:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
303
304         * Assembly.cs: implemented GetFile() and GetFiles().
305
306 Mon Aug 5 21:19:41 CEST 2002 Paolo Molaro <lupus@ximian.com>
307
308         * Assembly.cs: implemented EntryPoint and a few 
309         resource related methods.
310
311 Wed Jul 24 13:08:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
312
313         * MethodBase.cs: implemented GetCurrentMethod.
314         * Assembly.cs: implemented GetExecutingAssembly and
315         GetCallingassembly.
316
317 Mon Jul 1 18:01:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
318
319         * MonoProperty.cs: handle properties with only a set method.
320
321 2002-05-24  Martin Baulig  <martin@gnome.org>
322
323         * ParameterInfo.cs: Added internal constructor.
324
325 Thu May 23 17:18:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
326
327         * Assembly.cs: implemented CreateInstance ().
328
329 2002-05-22  Martin Baulig  <martin@gnome.org>
330
331         * MethodBase.cs (get_next_table_index): Added `object obj' argument.
332
333 Tue May 21 12:07:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
334
335         * EventInfo.cs: more implementation.
336
337 Mon May 20 17:37:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
338
339         * MonoEvent.cs: fill-in the implementation.
340
341 Sat May 4 15:00:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
342
343         * Assembly.cs, AssemblyName.cs: updates and fixes.
344
345 2002-04-24      Patrik Torstensson <patrik.torstensson@labs2.com>
346
347         * MonoProperty.cs (GetValue) : basic implementation to support nunit
348         * PropertyInfo.cs (GetValue) : call MonoProperty::GetValue instead of returning null
349
350 Thu Apr 18 16:40:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
351
352         * MonoMethod.c: cache the method name.
353
354 2002-04-12  Duncan Mak  <duncan@ximian.com>
355
356         * AssemblyAlgorithmIdAttribute.cs: Fixed typo in AlgorithmId
357         property.
358
359         * AssemblyDelaySignAttribute.cs: Fixed type in DelaySign
360         attribute.
361
362         * AssemblyFileVersionAttribute.cs: Renamed FileVersion property to
363         Version.
364
365         * BindingFlags.cs: Added missing value "PutRefDispProperty".
366
367         * FieldAttributes.cs: Removed value "HasSecurity".
368
369         * ManifestResourceInfo.cs: Added missing properties FileName,
370         ReferencedAssembly and ResourceLocation.
371
372         * TargetInvocationException.cs: Added the missing constructors.
373
374 Fri Apr 12 18:32:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
375
376         * MonoMethod.cs: make Name property an icall.
377
378 2002-04-08  Nick Drochak  <ndrochak@gol.com>
379
380         * DefaultMemberAttribute.cs: Add AttributeUsage attribute for class,
381         struct and interface.
382
383 Fri Apr 5 15:40:24 CEST 2002 Paolo Molaro <lupus@ximian.com>
384
385         * MonoEvent.cs: remove unused code.
386         * MonoProperty: implement ToString().
387
388 Wed Apr 3 17:59:26 CEST 2002 Paolo Molaro <lupus@ximian.com>
389
390         * Assembly.cs: implement GetTypes() and GetExportedTypes().
391
392 Mon Mar 25 18:54:58 CET 2002 Paolo Molaro <lupus@ximian.com>
393
394         * MonoEvent.cs: added the needed fields.
395
396 2002-03-20  Martin Baulig  <martin@gnome.org>
397
398         * ConstructorInfo.cs (Invoke): Implemented, call the abstract Invoke.
399
400         * MonoMethod.cs (MonoCMethod.Invoke): Implemented, call InternalInvoke.
401
402 2002-03-14  Dietmar Maurer  <dietmar@ximian.com>
403
404         * MonoMethod.cs (Invoke): call InternalInvoke
405
406         * MethodBase.cs (Invoke): call virtual invoke function 
407
408 Thu Mar 7 17:14:20 CET 2002 Paolo Molaro <lupus@ximian.com>
409
410         * EventInfo.cs: add compiler needed methods.
411         * MonoMethod.cs: make ToString() return the return type name, too.
412
413 2002-03-07  Nick Drochak  <ndrochak@gol.com>
414
415         * BindingFlags.cs: Add missing enum values.  Thanks CorCompare.
416
417 Tue Mar 5 20:33:14 CET 2002 Paolo Molaro <lupus@ximian.com>
418
419         * TypeAttributes.cs, MethodImplAttributes.cs: updates to latest spec.
420
421 2002-02-26  Duncan Mak  <duncan@ximian.com>
422
423         * StrongNameKeyPair.cs: Committed for Kevin Winchester (kwin@ns.sympatico.ca>.
424
425 2002-02-24 Nick Drochak  <ndrochak@gol.com>
426
427         * AssemblyNameFlags.cs: Use proper member name.  Thanks corcompare!
428
429 Fri Feb 22 18:54:13 CET 2002 Paolo Molaro <lupus@ximian.com>
430
431         * MonoField.cs: implement GetValue as an internalcall.
432         Implemented ToString().
433
434 Tue Feb 19 20:36:04 CET 2002 Paolo Molaro <lupus@ximian.com>
435
436         * Assembly.cs, Module.cs, MonoField.cs, MonoMethod.cs,
437         MonoProperty.cs, ParameterInfo.cs: Implemented custom attributes
438         related methods.
439
440 Thu Feb 14 18:55:23 CET 2002 Paolo Molaro <lupus@ximian.com>
441
442         * TypeAttributes.cs: update to latest spec.
443
444 Mon Feb 11 19:50:27 CET 2002 Paolo Molaro <lupus@ximian.com>
445
446         * Assembly.cs: handle throwOnError in GetType() call.
447
448 2002-02-07  Duncan Mak  <duncan@ximian.com>
449
450         * AssemblyName.cs: Implemented ISerializable interface for the
451         fields that we have.
452
453 2002-02-05  Duncan Mak  <duncan@ximian.com>
454         
455         * Missing.cs: 
456         * TargetException.cs: Added in CVS.
457
458 2002-01-31  Duncan Mak  <duncan@ximian.com>
459
460         * ReflectionTypeLoadException.cs: Added missing bits.
461
462 2002-01-23  Duncan Mak  <duncan@ximian.com>
463
464         * AssemblyAlgorithmIdAttribute.cs:
465         * AssemblyCompanyAttribute.cs:
466         * AssemblyConfigurationAttribute.cs:
467         * AssemblyCopyrightAttribute.cs:
468         * AssemblyCultureAttribute.cs:
469         * AssemblyDefaultAliasAttribute.cs:
470         * AssemblyDelaySignAttribute.cs:
471         * AssemblyDescriptionAttribute.cs:
472         * AssemblyFileVersionAttribute.cs:
473         * AssemblyFlagsAttribute.cs:
474         * AssemblyInformationalVersionAttribute.cs:
475         * AssemblyKeyFileAttribute.cs:
476         * AssemblyKeyNameAttribute.cs:
477         * AssemblyNameProxy.cs:
478         * AssemblyProductAttribute.cs:
479         * AssemblyTitleAttribute.cs:
480         * AssemblyTradeMarkAttribute.cs:
481         * AssemblyVersionAttribute.cs:
482         * CustomAttributeFormatException.cs:
483         * InvalidFilterCriteriaException.cs:
484         * TargetParameterCountException.cs: Added.
485
486 2002-01-23  Miguel de Icaza  <miguel@ximian.com>
487
488         * Assembly.cs (Assembly.CodeBase): Implement.
489         (Assembly.FullName): simplistic and broken implementation.  Gets
490         us where we were yesterday.
491
492         Code style fix.
493
494 Tue Jan 22 22:54:18 CET 2002 Paolo Molaro <lupus@ximian.com>
495
496         * IReflect.cs: corrected GetMember() return type.
497         * InterfaceMapping.cs, TypeDelegator.cs: implemented.
498
499 Wed Jan 9 19:37:14 CET 2002 Paolo Molaro <lupus@ximian.com>
500
501         * MonoMethod.cs: ToString () implementation.
502
503 2002-01-04  Ravi Pratap  <ravi@ximian.com>
504
505         * Assembly.cs : Decorate missing bits with the MonoTODO
506         attribute.
507
508         * ConstructorInfo.cs, MonoMethod.cs, MonoProperty.cs, ParameterInfo.cs,
509         ReflectionTypeLoadException.cs : Ditto.
510
511         * FieldInfo.cs : Ditto.
512         
513 Thu Jan 3 23:25:34 CET 2002 Paolo Molaro <lupus@ximian.com>
514         
515         * Assembly.cs: trow unimplemented exceptions.
516
517 Tue Dec 18 18:46:22 CET 2001 Paolo Molaro <lupus@ximian.com>
518
519         * MonoMethod.cs: implemented GetParameters().
520         * MonoProperty.cs: PropertyInfo implementation.
521         * ParameterInfo.cs: implemented.
522         * PropertyInfo.cs: fixes.
523
524 Thu Dec 13 20:18:05 CET 2001 Paolo Molaro <lupus@ximian.com>
525
526         * FieldInfo.cs: implemented some Is* propeties.
527         * MethodBase.cs: fixed attribute accessors.
528         * MonoField.cs: runtime object to represent a field.
529         * MonoMethod.cs: runtime object to represent a method.
530         * AssemblyBuilder.cs: GetToken() methods to get tokens for
531         strings, fields, methods...
532         * ILGenerator.cs: handle tokens for methods.
533
534 Mon Nov 19 13:56:55 CET 2001 Paolo Molaro <lupus@ximian.com>
535
536         * MethodBase.cs: add internal get_next_table_index() for use in
537         Reflection.Emit.
538
539 Wed Nov 14 16:53:28 CET 2001 Paolo Molaro <lupus@ximian.com>
540
541         * Assembly.cs: implement some of the Load() methods.
542         * ConstructorInfo.cs: some missing stubs and fields.
543         * FieldInfo.cs: IsInitOnly property.
544         * ParameterInfo.cs: stubs for missing properties.
545         * ParameterModifier.cs: implemented class.
546
547 2001-11-10  Sean MacIsaac  <macisaac@ximian.com>
548
549         * Assembly.cs: Filled in some stub implementations
550
551         * ConstructorInfo.cs: Added some stub functions for NUnit
552
553 Fri Nov 2 18:29:36 CET 2001 Paolo Molaro <lupus@ximian.com>
554
555         * AmbiguousMatchException.cs, 
556         * Assembly.cs, Module.cs: updates.
557         * FieldInfo.cs: better compliance to the spec.
558         * MethodBase.cs: move call_conv out of the way.
559         * AssemblyBuilder.cs:  don't use internalcalls, more stuff supported.
560         * FieldBuilder.cs: implemented.
561         * ILGenerator.cs: implemented some opcode handling.
562         * Label.cs: add constructor.
563         * LocalBuilder.cs: implemented.
564         * MethodBuilder.cs: don't use internalcalls, more implemented stuff.
565         * ModuleBuilder.cs: don't use internalcalls, more meat here, too.
566         * ParameterBuilder.cs: implemented.
567         * PropertyBuilder.cs: implemented.
568         * TypeBuilder.cs: don't use internalcalls, more stuff working.
569
570 Tue Sep 25 16:48:50 CEST 2001 Paolo Molaro <lupus@ximian.com>
571
572         * ConstructorInfo.cs, MemberFilter.cs, Module.cs: added.
573
574 Fri Sep 14 16:12:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
575
576         * MethodBase.cs, MethodInfo.cs: added.
577
578 Thu Sep 13 18:05:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
579
580         * Assembly.cs: added stub code.
581
582 2001-07-18  Michael Lambert <michaellambert@email.com>
583
584         * BindingFlags.cs: Add.
585 >>>>>>> 1.52