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