Uploaded image for project: 'MINA'
  1. MINA
  2. 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.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      n/a

      Description

      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;
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aaronshaw Aaron Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified