[jboss-jira] [JBoss JIRA] (WFWIP-77) smallrye-config: Converter Priority is not upheld
Michal Jurc (JIRA)
issues at jboss.org
Fri Aug 3 03:15:00 EDT 2018
[ https://issues.jboss.org/browse/WFWIP-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Jurc closed WFWIP-77.
----------------------------
Resolution: Explained
[~jmesnil] this was actually a test problem. The module did not have the required module dependency ({{<module name="javax.annotation.api"/>}}) and the test deployment didn't import annotations. Therefore I am closing this.
> 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.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list