Issue Details (XML | Word | Printable)

Key: CHAIN-42
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Niall Pemberton
Reporter: Isaac Shabtay
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Chain

Various scope mappers use incorrect equalization

Created: 01/Dec/07 11:35 AM   Updated: 20/May/08 05:27 PM
Return to search
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch-equals.txt 2007-12-01 11:40 AM Isaac Shabtay 5 kB
Environment: All

Resolution Date: 20/May/08 05:27 PM


 Description  « Hide
The following classes:

org.apache.commons.chain.web.portlet.PortletApplicationScopeMap
org.apache.commons.chain.web.portlet.PortletRequestScopeMap
org.apache.commons.chain.web.portlet.PortletSessionScopeMap
org.apache.commons.chain.web.servlet.ServletApplicationScopeMap
org.apache.commons.chain.web.servlet.ServletRequestScopeMap
org.apache.commons.chain.web.servlet.ServletSessionScopeMap

use the "==" for comparison in their containsValue(Object) methods. This is in contrary to java.util.Map's specification which mandates that the containsValue(v1) method returns true if and only if there exists a value 'v' in the map such that v1.equals(v).



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order