|
From: Fabio M. (JIRA) <nh...@gm...> - 2011-06-21 13:15:32
|
[ http://216.121.112.228/browse/NH-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21314#action_21314 ]
Fabio Maulo commented on NH-2773:
---------------------------------
The test fail even with static ProxyFactory.
The DefaultProxyFactory is part of the BytecodeProvider (static in Environment)
> ProxyObjectReference creates a new ProxyFactory for each deserialization which disables proxy caching
> -----------------------------------------------------------------------------------------------------
>
> Key: NH-2773
> URL: http://216.121.112.228/browse/NH-2773
> Project: NHibernate
> Issue Type: Bug
> Components: ByteCode providers
> Affects Versions: 3.2.0Beta1
> Reporter: cremor
> Priority: Major
> Attachments: NH2773 Test.zip
>
>
> If you deserialize a session which contains references to proxies a new ProxyFactory (and thus ProxyCache) is created for each reference which results in a new proxy assembly and module for each reference.
> I think this class should also use the static ProxyFactory field of the DefaultProxyFactory so the cache is correctly used. A test for this assumption is attached.
--
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
|