[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:28:00 EDT 2018
[ https://issues.jboss.org/browse/WFLY-10888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matej Novotny updated WFLY-10888:
---------------------------------
Git Pull Request: https://github.com/wildfly/wildfly/pull/11543
> 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.
> {code}
> 2018-08-20 12:24:43,009 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.wildfly.microprofile.opentracing.smallrye.TracerProducer is deprecated from CDI 1.1!
> 2018-08-20 12:24:43,010 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class io.smallrye.opentracing.SmallRyeTracingCDIInterceptor is deprecated from CDI 1.1!
> {code}
> 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