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

CDI support can fail due to Set.toString() used as Map key [DATAES-234] #808

Closed
spring-projects-issues opened this issue Feb 8, 2016 · 1 comment
Labels
in: repository type: bug

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Feb 8, 2016

Mark Paluch opened DATAES-234 and commented

Current CDI support can fail, because it stores ElasticsearchOperations instances in a map with String key representing a set of Qualifiers:

elasticsearchOperationsMap.put(bean.getQualifiers().toString(), ((Bean<ElasticsearchOperations>) bean));

However, Set doesn't define iteration order (or even String representation for that matter), so with 2+ Qualifiers there's a good chance to get them in the wrong order and fail to find operations


Affects: 1.2.2 (Fowler SR2), 1.1.4 (Evans SR4), 1.3.1 (Gosling SR1), 1.4 M1 (Hopper)

Issue Links:

  • DATACASS-249 CDI support can fail due to Set.toString() used as Map key

Referenced from: pull request #141, and commits 023214a

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Mar 17, 2016

Mohsin Husen commented

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: repository type: bug
Projects
None yet
Development

No branches or pull requests

1 participant