[JBoss JIRA] Created: (ISPN-242) MarshalledValue leaked to event listener implementations when lazy deserialization is on
by Galder Zamarreno (JIRA)
MarshalledValue leaked to event listener implementations when lazy deserialization is on
----------------------------------------------------------------------------------------
Key: ISPN-242
URL: https://jira.jboss.org/jira/browse/ISPN-242
Project: Infinispan
Issue Type: Bug
Components: Listeners
Affects Versions: 4.0.0.CR1
Reporter: Galder Zamarreno
Assignee: Galder Zamarreno
Fix For: 4.0.0.CR2
I've noticed that when lazy deserialization is on and you use a user
defined key, notification callbacks receive MarshalledValue instances
within event.getKey() rather than instances of the user defined class.
This forces listener code to be aware whether lazy deserialization is
enabled or not, hence we're leaking an implementation detail to the
client code.
I think these callbacks should provide user defined class instances
regardless of whether lazy deserialization is on or not.
Manik: The event instance should be able to detect a MarshalledValue and
return the actual key.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira