[Mono-dev] Bug in MonoType.GetField(FieldInfo)

Paolo Molaro lupus at ximian.com
Mon Feb 12 15:57:08 EST 2007

On 02/09/07 Cedric Vivier wrote:
> The bug is related to method MonoType.GetField(FieldInfo) only
> returning public fields (because of the use of the default public-only
> BindingFlags as used in the Type.GetField(string) method), whereas
> FieldInfo can obviously "reference" a non-public field too.
> Thus, we were getting a "field not found" exception from caller
> TypeBuilder.GetField(Type, FieldInfo) when building a generics class
> with a non-public field.
> Attached a patch fixing this, with the corresponding testcase :)

Committed to svn.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list