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

Error if duplicate service component reference names are used #474

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

jeffdiclemente
Copy link
Member

Fixes #473

Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com

Fixes #473

Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com
Copy link
Collaborator

@kevinleeMW kevinleeMW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ship it!

@jeffdiclemente
Copy link
Member Author

using an unordered_map changed the auto-generated code which broke the guarantees about the order of injected service dependencies.

Revert back to using a vector to maintain the correct order and track duplicates separately
Copy link
Collaborator

@kevinleeMW kevinleeMW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like travis ci failures are unrelated to this change

@jeffdiclemente
Copy link
Member Author

yes, they are unrelated.

@jeffdiclemente
Copy link
Member Author

@carneyweb please review.

@jeffdiclemente jeffdiclemente self-assigned this Jun 8, 2020
Copy link
Contributor

@carneyweb carneyweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@jeffdiclemente jeffdiclemente merged commit f832231 into development Jun 9, 2020
@jeffdiclemente jeffdiclemente deleted the 473-duplicate-ref-names branch June 9, 2020 16:53
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.

[Declarative Services] duplicate service reference names do not cause an error
3 participants