You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Aaron Shaw (Created) (JIRA)" <ji...@apache.org> on 2011/11/22 15:48:40 UTC

[jira] [Created] (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.

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


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

        

[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.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Commented] (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.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409533#comment-13409533 ] 

Emmanuel Lecharny commented on DIRMINA-871:
-------------------------------------------

Very true...
                
> 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
>   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