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

sort changes its argument, if a Java array

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: Release 1.4, Release 1.3
    • Fix versions: Backlog, Release 1.5
    • Labels:
      None
    • Environment:

      java version "1.6.0_22"
      OpenJDK Runtime Environment (IcedTea6 1.10.4) (6b22-1.10.4-0ubuntu1~11.04.1)
      (clojure-version)
      "1.4.0-alpha2"

    • Approval:
      Ok
    • Patch:
      Code

      Description

      user> (let [a (to-array [32 11])]
      (prn (seq a))
      (sort a)
      (prn (seq a)))
      (32 11)
      (11 32)
      nil

      Where the second line printed ought to be the same as the first.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: