Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Recursion issue #12

Merged
merged 1 commit into from
Apr 6, 2015
Merged

Conversation

divideandconquer
Copy link
Contributor

I've added a test that exposes an issue I'm running into with recursive map merges. I was expecting the merge to copy values from the src to the dst recursively, overwriting existing values. That doesn't appear to be the case. Top level values are being overwritten but "deeper" values are not.

In the test in this example you can see that the KeyValue map from a is merged into b but values are not overwritten if b is already set e.g. b.KeyValue["Key1"] should be getting set to "not value 1"

Is this a bug or is it functioning as designed?

@divideandconquer
Copy link
Contributor Author

PR 8 (with MergeWithOverwrite) solves this issue.

@darccio
Copy link
Owner

darccio commented Mar 10, 2015

I read your message. Thanks for contacting. I'm under a heavy load of work and I'm not able to pull all the requests but I will try to check them this week.

@firewut
Copy link

firewut commented Mar 12, 2015

Any news ?:D

@darccio
Copy link
Owner

darccio commented Mar 12, 2015

Nope, sorry. I'm under a lot of pressure and I have little time for anything else.

darccio added a commit that referenced this pull request Apr 6, 2015
@darccio darccio merged commit 63d3509 into darccio:master Apr 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants