From: NHibernate J. <nh...@gm...> - 2008-06-29 20:58:20
|
[ http://jira.nhibernate.org/browse/NH-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-824: --------------------------- Fix Version/s: (was: 2.0.0.Beta1) 2.0.0.Beta2 > GetClassname cannot parse generic classnames > -------------------------------------------- > > Key: NH-824 > URL: http://jira.nhibernate.org/browse/NH-824 > Project: NHibernate > Issue Type: Improvement > Components: Core > Affects Versions: 1.2.0.Beta2 > Reporter: Michael Abraham > Priority: Major > Fix For: 2.0.0.Beta2 > > Attachments: generic.patch, GetClassnameBug.zip > > > There appears to be a bug in NHibernate.Util.StringHelper.GetClassname. The code assumes that the last period in a fully-qualified class name immediately precedes the unqualified class name. That is not true for generic classes. GetClassname gets the unqualified class name of the type parameter with ']' appended. I believe that the same issue may affect StringHelper.Unqualify when it is applied to class names, but I don't know when (or whether) that ever happens. The attached VS2005 solution illustrates the problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |