You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2012/07/09 17:07:34 UTC
[jira] [Resolved] (DIRMINA-871) DefaultIoSessionAttributeMap
returns the defaultValue parameter if no entry is found for the specified
key, but does not add that new key/value pair to the map as specified in
the javadocs.
[ https://issues.apache.org/jira/browse/DIRMINA-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRMINA-871.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.5
Fixed with :
http://svn.apache.org/viewvc?rev=1359203&view=rev
> DefaultIoSessionAttributeMap returns the defaultValue parameter if no entry is found for the specified key, but does not add that new key/value pair to the map as specified in the javadocs.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DIRMINA-871
> URL: https://issues.apache.org/jira/browse/DIRMINA-871
> Project: MINA
> Issue Type: Bug
> Affects Versions: 2.0.4
> Environment: n/a
> Reporter: Aaron Shaw
> Priority: Minor
> Fix For: 2.0.5
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> DefaultIoSessionAttributeMap returns the defaultValue parameter if no entry is found for the specified key, but does not add that new key/value pair to the map as specified in the javadocs:
> public Object getAttribute(IoSession session, Object key, Object defaultValue) {
> if (key == null) {
> throw new IllegalArgumentException("key");
> }
> Object answer = attributes.get(key);
> if (answer == null) {
> return defaultValue;
> }
>
> return answer;
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira