X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection.Emit%2FChangeLog;h=45248a8b9c9d64780305e4889e69523825a5c1ed;hb=8a28f5d1522b1456608a1efbfa4a1f7ec6f6cef3;hp=a39bfdbf20aa84c589e6d759d0ea3feb21557159;hpb=a6b0d063291058090099d8ebd0c4ac70c9359dd4;p=mono.git diff --git a/mcs/class/corlib/System.Reflection.Emit/ChangeLog b/mcs/class/corlib/System.Reflection.Emit/ChangeLog index a39bfdbf20a..45248a8b9c9 100644 --- a/mcs/class/corlib/System.Reflection.Emit/ChangeLog +++ b/mcs/class/corlib/System.Reflection.Emit/ChangeLog @@ -1,3 +1,427 @@ +2010-06-22 Jb Evain + + * ModuleBuilder.cs + * AssemblyBuilder.cs: + properly override the new net_4_0 methods in moonlight. + +2010-05-27 Jb Evain + + * EnumBuilder.cs (GetEnumUnderlyingType): override. + +2010-05-18 Marek Safar + + * TypeBuilder.cs, PropertyBuilder.cs: Add DefineProperty overloads. + +2010-04-27 Marek Safar + + * TypeBuilder.cs: StructLayoutAttribute ctor can be builder when + compiling corlib. + +2010-04-20 Rodrigo Kumpera + + * TypeBuilder.cs (CreateType): Move default constructor + and createTypeCalled assignment to before the parent checks. + + * TypeBuilder.cs (is_created): Return true even if creation + fails. + + Fixes #331126 + +2010-04-09 Rodrigo Kumpera + + * TypeBuilder.cs (IsValueTypeImpl): Don't depend on + type_is_subtype_of icall. Fixes corlib compilation. + +2010-04-08 Rodrigo Kumpera + + * EnumBuilder.cs: + * GenericTypeParameterBuilder.cs: + * DerivedTypes.cs: + * TypeBuilder.cs: Add ResolveInternal virtual call that + resolves a given type to it's concrete type. + + * TypeBuilder.cs (DefineDefaultConstructor): Use + ResolveInternal on parent to do the lookup on a + finished type. + + Fixes #591225. + +2010-04-08 Rodrigo Kumpera + + * AssemblyBuilder.cs (GenericInstanceKey): Precalculate + GenericInstanceKey hash code since this can cause infinite + recursion when inflating "Foo : Bar>" parent. + + * TypeBuilder.cs (IsSubclassOf): Don't delegate to base class + since the unmanaged information can be out of sync. + + * TypeBuilder.cs (UnderlyingSystemType): Invert the test order + since IsEnum now is potentialy more expensive. + + Fixes #594728. + +2010-04-06 Marek Safar + + * ModuleBuilder.cs: Use Dictionary. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement Resolve*. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement ModuleVersionId. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement ResolveType. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement GetMethodImpl. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs (DefineType): Raise the correct exception + when name is null. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement IsResource. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement ScopedName property. + +2010-04-01 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement Name property. + +2010-03-31 Rodrigo Kumpera + + * ModuleBuilder.cs: Implement Assembly property. + +2010-04-01 Zoltan Varga + + * TypeBuilder.cs (GetField): Avoid a crash if this is called on a + FieldOnTypeBuilderInst. Fixes #586944. + +2010-03-30 Zoltan Varga + + * ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating + the TypeBuilder since the runtime code can't handle a duplicate type name. + +2010-03-30 Zoltan Varga + + * CustomAttributeType.cs (IsValidType): Implement proper checking for value types + as well. + +2010-03-30 Zoltan Varga + + * CustomAttributeBuilder.cs: Fix the calls to IsValidType, some were passing + in DeclaringType instead of PropertyType/FieldType. + + * CustomAttributeType.cs (IsValidType): Implement proper checking for reference + types. Fixes #591788. + +2010-03-30 Zoltan Varga + + * CustomAttributeBuilder.cs (IsValidType): Call Enum.GetUnderlyingType () for + dynamic enums to avoid crashes in the unmanaged code. Fixes #591800. + +2010-03-26 Rodrigo Kumpera + + * AssemblyBuilder.cs: Add IsDynamic. + +2010-03-26 Rodrigo Kumpera + + * AssemblyBuilder.cs: Implement v4 GetSatelliteAssembly, + ManifestModule, GlobalAssemblyCache. + +2010-03-26 Rodrigo Kumpera + + * AssemblyBuilder.cs: Implement v4 GetReferencedAssemblies + and GetLoadedModules. + +2010-03-25 Rodrigo Kumpera + + * AssemblyBuilder.cs: Implement v4 GetModules(). + +2010-03-25 Rodrigo Kumpera + + * AssemblyBuilder.cs: Implement v4 GetType. + +2010-03-23 Rodrigo Kumpera + + * MethodOnTypeBuilderInst.cs (ContainsGenericParameters): Check + the base_method first. + +2010-03-16 Jb Evain + + * AssemblyBuilder.cs, ModuleBuilder.cs: use MOONLIGHT symbol to + disambiguate MonoTouch and Moonlight code. + +2010-03-12 Jb Evain + + * AssemblyBuilder.cs (AddTypeForwarder): throw if the + type is a nested type. + +2010-03-11 Rodrigo Kumpera + + * TypeBuilder.cs (GetMethod): Allow type to be the typebuilder itself. + Add better error checking to GetConstructor and GetField. + + Fixes #587106. + +2010-02-09 Sebastien Pouliot + + * ModuleBuilder.cs: Do not use reflection to create SymbolWriterImpl + for Moonlight since the code is bundled inside mscorlib.dll to avoid + having a non-platform assembly poking the internals of mscorlib.dll + +2010-01-30 Zoltan Varga + + * CustomAttributeBuilder.cs (Initialize): Add more argument checking to avoid + assertions in the runtime. Fixes #574353. + +2010-01-19 Rodrigo Kumpera + + * EventOnTypeBuilderInst.cs: Fix build. + +2010-01-03 Zoltan Varga + + * ILGenerator.cs (Emit): Disallow byref types. Fixes #564411. + +2009-12-16 Rodrigo Kumpera + + * FieldOnTypeBuilderInst.cs: Add more CompilerContext hacks. + +2009-12-14 Rodrigo Kumpera + + * TypeBuilder.cs (GetConstructor/GetMethod): Fail with a NRE if method/ctor + is null. + +2009-12-10 Rodrigo Kumpera + + * AssemblyBuilder.cs (MakeGenericType): Accept a Type as argument. + + * ConstructorOnTypeBuilderInst.cs: Change it to support an underlying + non-sre constructor. + + * MethodOnTypeBuilderInst.cs: Change it to support an underlying + non-sre method. + + * FieldOnTypeBuilderInst.cs: Change it to support an underlying + non-sre field. + + * EventOnTypeBuilderInst.cs: Change it to support an underlying + non-sre event. + +2009-12-10 Rodrigo Kumpera + + * AssemblyBuilder.cs: Add MakeGenericType method while takes care of doing + generic instance canonicalization under compiler context. + + * DerivedTypes.cs: Add ArrayType::GetEffectiveRank to make it possible to + distinguish between [] and [*]. + + * TypeBuilder.cs: Implement MakeGenericType in managed code. + +2009-12-09 Jb Evain + + * ILGenerator.cs (Emit(OpCode,LocalBuilder)): deal with + opcodes not related to locals. + +2009-12-08 Rodrigo Kumpera + + * MethodOnTypeBuilderInst.cs: Add new constructor that takes a MethodInfo + as base method. Change how compiler context is calculated to take the + instantiation vector into account. + +2009-12-08 Rodrigo Kumpera + + * MethodOnTypeBuilderInst.cs: Change base_method type from MethodBuilder to + MethodInfo. + +2009-12-08 Rodrigo Kumpera + + * DerivedTypes.cs: Implement IsCompilerContext property and replace + all checks to use it. + + * EnumBuilder.cs: Ditto. + + * GenericTypeParameterBuilder.cs: Ditto. + + * TypeBuilder.cs: Ditto. + + * FieldOnTypeBuilderInst.cs: Replace ad-hoc check for compiler context + with proper call to generic instance type. + + * MethodOnTypeBuilderInst.cs: Ditto. + + * ConstructorOnTypeBuilderInst.cs: Ditto. + +2009-12-04 Rodrigo Kumpera + + * MethodBuilder.cs (MakeGenericMethod): Don't rely on the runtime to + inflate a MethodBuilder. Create directly an instance of MethodOnTypeBuilderInst. + + * MethodOnTypeBuilderInst.cs (MakeGenericMethod): Cleanup this method and support + inflating already inflated methods under compiler context. + +2009-12-04 Rodrigo Kumpera + + * MethodOnTypeBuilderInst.cs: Change instantiation field type to System.Type. + + * MethodOnTypeBuilderInst.cs (MetadataToken): Explicitly throw if not under + compiler context. + +2009-12-04 Rodrigo Kumpera + + * MethodOnTypeBuilderInst.cs: Rename mb to base_method to better reflect + it's meaning. Introduce IsCompilerContext method and apply it's usage. + +2009-11-16 Marek Safar + + * ILGenerator.cs, DynamicMethod.cs, MethodBuilder.cs, + ConstructorBuilder.cs: Some 4.0 changes. + +2009-10-30 Sebastien Pouliot + + * MethodBuilder.cs: Add missing 'names' validations in + DefineGenericParameters + +2009-10-29 Sebastien Pouliot + + * ModuleBuilder.cs: Add missing 'className' validations in GetType + * TypeBuilder.cs: Add missing 'names' validations in + DefineGenericParameters + +2009-10-27 Marek Safar + + * GenericTypeParameterBuilder.cs: Attributes work under NET_4_0. + +2009-10-24 Sebastien Pouliot + + * AssemblyBuilder.cs: For Silverlight only AssemblyBuilderAccess.Run + is supported (browser-side) but we still allow other values when + compiling (e.g. smcs) outside the browser (wo coreclr) + * TypeBuilder.cs (GetConstructor): Fix validations + +2009-09-18 Sebastien Pouliot + + * AssemblyBuilder.cs, ConstructorBuilder.cs, MethodBuilder.cs, + TypeBuilder.cs: Don't process PermissionSet under NET_2_1 + +2009-09-06 Rodrigo Kumpera + + * ConstructorOnTypeBuilderInst.cs (GetParameters): Make it work for + finished types. + +2009-09-02 Rodrigo Kumpera + + * ILGenerator.cs (label_fixup): Check for unmarked labels. + Fixes #536243. + +2009-08-06 Rodrigo Kumpera + + * MethodBuilder.cs: Mark generic_params internal. + + * MethodOnTypeBuilderInst.cs: Add fields to support + inflated generic methods. Implement generics related + methods. + +2009-08-06 Marek Safar + + * ILGenerator.cs: Add 4.0 ILOffset. + +2009-08-04 Rodrigo Kumpera + + * DerivedTypes.cs (DerivedType): Implement ToString (). + +2009-08-03 Rodrigo Kumpera + + * EventBuilder.cs: Make some fields internal. + + * TypeBuilder.cs: Make events field internal. + Remove some MonoTODOs that are already done. + + * EventOnTypeBuilderInst.cs: New file which implements + the required functionality by compiler context. + +2009-07-30 Rodrigo Kumpera + + * TypeBuilder.cs (IsDefined): Throw if not + created and not in compiler context. + +2009-07-30 Rodrigo Kumpera + + * TypeBuilder.cs (GetNestedTypes): Throw if not + created and not in compiler context. + +2009-07-30 Rodrigo Kumpera + + * TypeBuilder.cs (GetEvents): Throw if not created + and not in compiler context. + + * TypeBuilder.cs (GetNestedType): Don't rely on + MonoType implementation as it doesn't work if the + nested type is defined after the TypeBuilder is + created. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (GetConstructors): Throw if + TypeBuilder is incomplete. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (DefineMethodOverride): Throw if + method body doesn't belong to the TypeBuilder. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (GetInterfaces): Return the expanded + interface list if the type has been created. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (GetGenericArguments): Returns null for + non generic TypeBuilders. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (GenericParameterAttributes): Return none. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (GetElementType): Throw always. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (GetGenericTypeDefinition): Either + throw or return itself. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (GenericParameterPosition): Return 0 + instead of throwing. + +2009-07-29 Rodrigo Kumpera + + * TypeBuilder.cs (DeclaringMethod): Return null + instead of throwing. + +2009-07-28 Rodrigo Kumpera + + * TypeBuilder.cs (CreateType): Throw if concrete + type has abstract method. + +2009-07-28 Rodrigo Kumpera + + * GenericTypeParameterBuilder.cs: SetBaseTypeConstraint with + null argument is the same as passing typeof (object). + 2009-07-28 Rodrigo Kumpera * DerivedTypes.cs (ArrayType): Special case vector arrays using zero