SessionMap containsKey will not find an object put into the map
---------------------------------------------------------------
Key: WW-2751
URL: https://issues.apache.org/struts/browse/WW-2751
Project: Struts 2
Issue Type: Bug
Components: Core Actions, Core Interceptors
Affects Versions: 2.1.2, 2.1.1
Reporter: Ian Robinson
Priority: Minor
The put, get and remove methods on SessionMap do a toString() on the key they
are dealing with.
containsKey is not overridden and so uses the method inherited from AbstractMap.
AbstractMap.containsKey(Object value) compares the object with the key entries
using value.equals(e.getValue())
Therfore, if you put an object into the map, for instance an enum,
containsKey(enum) wont find it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.