Clojure

Transient vectors mutations leak into their source persistent vector

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Completed
  • Affects Version/s: Release 1.1, Release 1.2, Release 1.3
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test
  • Approval:
    Ok

Description

(let [pv (vec (range 34))]
(-> pv transient pop! pop! pop! (conj! 42))
(nth pv 31))
; returns 42 instead of 31

Activity

Hide
Christophe Grand added a comment - - edited

The patch may apply to 1.1 and 1.2 too.

Show
Christophe Grand added a comment - - edited The patch may apply to 1.1 and 1.2 too.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: