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?
to your account
Andy Wilkinson opened SPR-15087 and commented
This is a regression due to #19593. Consider the following:
HttpHeaders headers = new HttpHeaders();
With M3 it outputs true. With M4 it outputs false.
Affects: 5.0 M4
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
Any specific reason why you're calling keySet().contains instead of simply containsKey there? It's a regression in any case, just wondering...
Sorry, something went wrong.
Andy Wilkinson commented
There's some separation between the code that's dealing with HttpHeaders and the code that checks to see if a particular header exists. The latter code is passed a Set of the header names so it can't use containsKey.
We're overriding containsKey on our internal LinkedHashMap now, implicitly picked up by its keySet() implementation.
Christoph Dreis commented
Hey. Was just wondering, if this will be backported to 4.3.x? Considering #19593 has also the fix version of 4.3.6
No branches or pull requests