Uploaded image for project: 'Clojure'
  1. CLJ-1739

Broken set equality for sets of equal sets

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: Release 1.7, Release 1.6
    • Fix versions: None

      Description

      With both clojure 1.6.0 and 1.7.0-RC1 I get the following inconsistent behavior.

      Different kinds of sets are equal which is expected:

      (= #{1 2 3} (flatland.ordered.set/ordered-set 1 2 3)) ;=> true
      (= #{1 2 3} (java.util.HashSet. [1 2 3]))             ;=> true
      

      However, sets containing equal sets are not equal:

      (= #{#{1 2 3}} #{(flatland.ordered.set/ordered-set 1 2 3)}) ;=> false
      (= #{#{1 2 3}} #{(java.util.HashSet. [1 2 3])})             ;=> false
      

      This is similar to http://dev.clojure.org/jira/browse/CLJ-1649 and probably caused by http://dev.clojure.org/jira/browse/CLJ-1372.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tsdh Tassilo Horn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: