DefaultValidationProviderResolver should check context and current class loader for service file

Description

Currently the code for discovering the service files in DefaultValidationProviderResolver looks like:

The current code only checks whether the context class loader is null. If not only this context class loader is used to locate the service file. Only if the context class loader is null the current class loader is used.
A better approach is to load the service file from the context file loader and then try the current class loader in case no service file is found.

Environment

None

Assignee

Hardy Ferentschik

Reporter

Hardy Ferentschik

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure