Clojure

*-zip lose metadata

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.1
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

vector-zip and seq-zip do not transport metadata on the nodes.

Reported by Justin Balthrop on #clojure.

To reproduce:

1. Create a vector with metadata.
2. Create a vector zipper.
3. Move in the tree.
4. Recreate the root.

Now the metadata is lost.

Proposed fix:

Move the metadata in the make-node function of the vector zipper.

Patch attached.

Activity

Hide
Assembla Importer added a comment -

meikelbrandmeyer said: [file:c1enmoydyr3RpYeJe5afGb]: Patch for metadata bug in zipper

Show
Assembla Importer added a comment - meikelbrandmeyer said: [file:c1enmoydyr3RpYeJe5afGb]: Patch for metadata bug in zipper
Hide
Assembla Importer added a comment -

meikelbrandmeyer said: (In [[r:dc5b4e60b88b9183e40a2427ef91b64c45c42ac3]]) Move metadata in vector-zip and seq-zip

Fixes #134
Signed-off-by: Chouser <chouser@n01se.net>

Branch: master

Show
Assembla Importer added a comment - meikelbrandmeyer said: (In [[r:dc5b4e60b88b9183e40a2427ef91b64c45c42ac3]]) Move metadata in vector-zip and seq-zip Fixes #134 Signed-off-by: Chouser <chouser@n01se.net> Branch: master
Hide
Assembla Importer added a comment -

chouser@n01se.net said: Child association with ticket #161 was added

Show
Assembla Importer added a comment - chouser@n01se.net said: Child association with ticket #161 was added

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: