[infinispan-issues] [JBoss JIRA] (ISPN-2996) ApplyDeltaCommand.getAffectedKeys() and ApplyDeltaCommand.getKey() do not return the expected key
Adrian Nistor (JIRA)
jira-events at lists.jboss.org
Fri Apr 5 04:42:41 EDT 2013
Adrian Nistor created ISPN-2996:
-----------------------------------
Summary: ApplyDeltaCommand.getAffectedKeys() and ApplyDeltaCommand.getKey() do not return the expected key
Key: ISPN-2996
URL: https://issues.jboss.org/browse/ISPN-2996
Project: Infinispan
Issue Type: Bug
Reporter: Adrian Nistor
Assignee: Mircea Markus
These methods should return the map key but null is returned instead because the super constructor is not invoked correctly.
See discussion on infinispan dev list here: http://markmail.org/message/dkoughqngztmxvuy
This class could also be simplified a bit by removing the field deltaAwareValueKey which duplicates the key field of the base class.
Also since keys are non-null (asserted by constructor) the equals() and hashCode() methods can be simplified by removing the null checks.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list