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

SwappedPair constructed as Pair.of(rhs,lhs) #282

Closed
wants to merge 2 commits into from
Closed

SwappedPair constructed as Pair.of(rhs,lhs) #282

wants to merge 2 commits into from

Conversation

namannigam-zz
Copy link
Contributor

There seems to be a bug in the current implementation of the isRegistered implementation, where the swappedPair is constructed similarly to the existing pair to check their existence in registry.

Source of finding - StackOverflow#45603317

@coveralls
Copy link

coveralls commented Aug 10, 2017

Coverage Status

Coverage remained the same at 95.18% when pulling 17bb505 on namannigam:master into 05d9518 on apache:master.

@kinow
Copy link
Member

kinow commented Aug 11, 2017

Makes sense, good catch. However, would be nice to have a unit test at least to cover that case, and make sure we don't have any regression for this behaviour. Would you be able to create one @namannigam ?

Thanks!!!
Bruno

@garydgregory
Copy link
Member

+1 on the unit test request, we need it to avoid regressions.

@PascalSchumacher
Copy link
Contributor

created https://issues.apache.org/jira/browse/LANG-1349 to track this

@namannigam-zz
Copy link
Contributor Author

@kinow @garydgregory Sure would try to come back soon with a unit test for the use-case.

@asfgit asfgit closed this in 3e08af5 Sep 8, 2017
@PascalSchumacher
Copy link
Contributor

I added a test. Thanks for the pull request! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants