Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3867

URIs should be used instead of URLs as Set or Map keys.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5-RC5.1
    • 1.5-RC6
    • wicket

    Description

      URLs are not suitable for use as Set or Map keys because their equals() and hashCode() methods are not well defined. URIs should be used to identify the location and URLs to access the actual resources.

      See thread for http://mail-archives.apache.org/mod_mbox/wicket-users/201107.mbox/%3CCAPdiUN6CaH9rn4+tD9_hXP-dmBGn-SvFu=RvCMh8AYx5_1JkkA@mail.gmail.com%3E

      Specifically:
      [1] "More Joy of Sets" example with URL from Google Tech Talks:
      http://www.youtube.com/watch?v=wDN_EYUvUq0#t=9m58s

      Attachments

        1. WICKET-3867-patch.patch
          3 kB
          Bertrand Guay-Paquet
        2. WICKET-3867-patch-v2.patch
          2 kB
          Bertrand Guay-Paquet

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            berniegp Bertrand Guay-Paquet
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: