Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

ParamConverterFactory should use LinkedHashSet to preserve ordering #3669

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

ParamConverterFactory should use LinkedHashSet to preserve ordering #3669

wants to merge 1 commit into from

Conversation

chkal
Copy link

@chkal chkal commented Sep 14, 2017

The class ParamConverterFactory manages a list of ParamConverterProvider implementations. But unfortunately the order in which the providers are processed seems to change between deployments. The reason for this is that the factory uses a HashSet internally. The provider sets passed into the constructor are LinkedHashSet instances, but as they are copied to the HashSet, the order may change.

@mkarg
Copy link

mkarg commented Sep 16, 2017

@pavelbucek As ordering of components is essential for applications to work correctly, I would kindly like to ask to include this PR in the next bugfix release of Jersey. :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants