[jboss-jira] [JBoss JIRA] (WFWIP-77) smallrye-config: Converter Priority is not upheld

Michal Jurc (JIRA) issues at jboss.org
Wed Aug 1 08:57:00 EDT 2018


Michal Jurc created WFWIP-77:
--------------------------------

             Summary: 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: Critical


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.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list