-
Notifications
You must be signed in to change notification settings - Fork 356
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
JerseyClientBuilder modifies Map content during provider registration #4082
Comments
That is documented behavior: /** |
Signed-off-by: Maxim Nesen <[email protected]>
Signed-off-by: Maxim Nesen <[email protected]>
Signed-off-by: Maxim Nesen <[email protected]>
Even though the behavior is documented it does not seem to be correct. Thus fix for it is introduced. |
Signed-off-by: Maxim Nesen <[email protected]>
Signed-off-by: Maxim Nesen <[email protected]>
Signed-off-by: Maxim Nesen <[email protected]>
merged, fixed |
When you try to register new provider with Map of contracts, it will get modified when there is non supported provider class present in the map.
Example:
Map<Class<?>, Integer> contracts = new HashMap<>();
contract.put(ClientRequestFilter.class, 500);
contract.put(SomeCustomClass.class, 501);
contracts.size();// -> returns 2
jerseyClientBuilder.register(MyProvider.class, contracts);
contracts.size();// -> returns 1
The text was updated successfully, but these errors were encountered: