[jboss-jira] [JBoss JIRA] (WFLY-10888) Opentracing CDI extension is using deprecated method leading to WARN
Matej Novotny (JIRA)
issues at jboss.org
Mon Aug 20 10:10:00 EDT 2018
Matej Novotny created WFLY-10888:
------------------------------------
Summary: Opentracing CDI extension is using deprecated method leading to WARN
Key: WFLY-10888
URL: https://issues.jboss.org/browse/WFLY-10888
Project: WildFly
Issue Type: Bug
Components: MP OpenTracing
Affects Versions: 14.0.0.Beta2
Reporter: Matej Novotny
Assignee: Matej Novotny
Opentracing [CDI extension|https://github.com/wildfly/wildfly/blob/master/microprofile/opentracing-smallrye/src/main/java/org/wildfly/microprofile/opentracing/smallrye/TracingCDIExtension.java#L36-L39] which registers bean types is using deprecated method which leads to WARNINGs every time it is registered.
Instead of [{{BBD.addAnnotatedType(AnnotatedType<?> type)}}|https://github.com/cdi-spec/cdi/blob/master/api/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java#L137-L150] you should be using [{{BBD.addAnnotatedType(AnnotatedType<?> type, String id)}}|https://github.com/cdi-spec/cdi/blob/master/api/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java#L152-L174].
Will send PR shortly.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list