|
From: cremor (JIRA) <nh...@gm...> - 2011-05-10 18:42:56
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21042#action_21042 ]
cremor commented on NH-2698:
----------------------------
Err, what? I downloaded Alpha3 today and implemented the test completely new. And it does fail for me. I just changed the default hibernate.cfg.xml to use SQLite and added the test files. The exception was something like "ValidationException: The type argument 'T0' violates the constraint on type parameter 'TRequestedType'" (I can post the exact exception tomorrow when I'm back at work).
And about the priority: I used the same as NH-2622, an issue reported by an NHibernate developer that decribes a very similar bug. So I thought the priority must be right.
> Proxying fails for methods with generic type constraints
> --------------------------------------------------------
>
> Key: NH-2698
> URL: http://216.121.112.228/browse/NH-2698
> Project: NHibernate
> Issue Type: Bug
> Components: ByteCode providers
> Affects Versions: 3.2.0Alpha3
> Reporter: cremor
> Attachments: NH2698 Test.zip
>
>
> I just tried to implement the As<T>() method described in this blog post:
> http://sessionfactory.blogspot.com/2010/08/hacking-lazy-loaded-inheritance.html
> But it seems like the dynamic proxy factory has problems creating proxies for methods with generic type constraints. Generic methods without constraints work perfectly, but I need a constraint in that method for the "as" operator.
--
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
|