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

        

Reply via email to