Fixed
Details
Assignee
UnassignedUnassignedReporter
Alex MillerAlex MillerApproval
OkPatch
Code and TestPriority
CriticalAffects versions
Fix versions
Details
Details
Assignee
Unassigned
UnassignedReporter
Alex Miller
Alex MillerApproval
Ok
Patch
Code and Test
Priority
Affects versions
Fix versions
Created September 6, 2022 at 1:40 PM
Updated December 7, 2022 at 9:54 PM
Resolved December 7, 2022 at 9:54 PM
Per https://ask.clojure.org/index.php/12148/strange-behavior-with-range-and-with-meta
In Range.java, the with-meta method calls the Range constructor with
(meta, end, start, step, boundsCheck, _chunk, _chunkNext)
but the Range constructor takes
(meta, start, end, step, boundsCheck, _chunk, _chunkNext)
This is just a simple bug introduced when this code was added in Clojure 1.7.
Approach:
Swap the start/end to match.
Patch: clj-2721.patch
screened by: fogus