|
From: cremor (JIRA) <nh...@gm...> - 2011-05-10 13:44:49
|
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
Priority: Critical
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
|
|
From: cremor (JIRA) <nh...@gm...> - 2011-05-10 13:46:49
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
cremor updated NH-2698:
-----------------------
Attachment: NH2698 Test.zip
> 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
> Priority: Critical
> 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
|
|
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-10 17:59:50
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Maulo updated NH-2698:
----------------------------
Priority: Trivial (was: Critical)
> 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
|
|
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-10 18:21:52
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Maulo closed NH-2698.
---------------------------
Resolution: Not an Issue
The user have reported the issue in 3.2.0Alpha3 but his test does not fail.
> 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
|
|
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
|
|
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-10 19:22:56
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21043#action_21043 ]
Fabio Maulo commented on NH-2698:
---------------------------------
NH-2622 is completely different, btw your tests does not fail, that is all.
> 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
|
|
From: cremor (JIRA) <nh...@gm...> - 2011-05-16 15:01:58
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21095#action_21095 ]
cremor commented on NH-2698:
----------------------------
Seems like this was fixed with r5816, thanks!
I think the issue should be changed to "fixed in 3.2.0.Beta1" so it appears in the changelog.
> 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
|
|
From: Richard B. (JIRA) <nh...@gm...> - 2011-05-16 15:06:41
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Brown reopened NH-2698:
-------------------------------
> 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
|
|
From: Richard B. (JIRA) <nh...@gm...> - 2011-05-16 15:06:45
|
[ http://216.121.112.228/browse/NH-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Brown resolved NH-2698.
-------------------------------
Resolution: Fixed
Fix Version/s: 3.2.0Beta1
> 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
> Fix For: 3.2.0Beta1
>
> 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
|