From: Fabio M. (JIRA) <nh...@gm...> - 2011-04-07 17:31:46
|
[ http://216.121.112.228/browse/NH-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo resolved NH-2628. ----------------------------- Resolution: Fixed Fix Version/s: 3.2.0 Fixed fixing NH-2622 > Fails to create proxy for class with method that has argument "ref of Dictionary<string, string>" > ------------------------------------------------------------------------------------------------- > > Key: NH-2628 > URL: http://216.121.112.228/browse/NH-2628 > Project: NHibernate > Issue Type: Bug > Components: ByteCode providers > Affects Versions: 3.2.0 > Reporter: Pavel Peker > Priority: Critical > Fix For: 3.2.0 > > > fails in DefaultMethodEmitter.cs > private static void SaveRefArguments(ILGenerator IL, ParameterInfo[] parameters) > when class has method with parameter "ref Dictionary<string, string>" > typeName = typeName.Replace("&", ""); > System.Type unboxedType = System.Type.GetType(typeName); > IL.Emit(OpCodes.Unbox_Any, unboxedType); > System.Type.GetType(typeName) returns null in this case. Changed code above into > string typeName = param.ParameterType.FullName; > instead > string typeName = param.ParameterType.Name; > and it fixed problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |