]
Michal Jurc updated WFWIP-77:
-----------------------------
Priority: Blocker (was: Critical)
smallrye-config: Converter Priority is not upheld
-------------------------------------------------
Key: WFWIP-77
URL:
https://issues.jboss.org/browse/WFWIP-77
Project: WildFly WIP
Issue Type: Bug
Components: MP Config
Reporter: Michal Jurc
Assignee: Jeff Mesnil
Priority: Blocker
Consider a scenario with two {{Coverter}} services available in service loader:
{code}@Priority(101)
public class Return101Converter implements Converter<Integer> {
@Override
public Integer convert(String value) {
return 101;
}
}
{code}
{code}@Priority(102)
public class Return102Converter implements Converter<Integer> {
@Override
public Integer convert(String value) {
return 102;
}
}
{code}
The {{@Priority}} of the {{Converter}} services is not considered, instead, their order
in provider configuration file is - the first implementation will always be preferred.