Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-787

AttributeKey needs either a better documenation or a more intuitive behaviour

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-RC1
    • 2.0.2
    • None

    Description

      The AttributeKey class seems like a good idea to use as a key in a Map. But if you try to use different instances with the same values (e.g. MyObject.class, "context") , you can't access the same attribute.

      So either document this behaviour (I'm using it some years now and noticed it while writing a testclass now), or implement hashCode() and equals()-Methods to find AttributeKeys with the same values.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            steve_ulrich Steve Ulrich
            Votes:
            0 Vote for this issue
            Watchers:
            0 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

                Slack

                  Issue deployment