]
Matej Novotny updated WFLY-10888:
---------------------------------
Git Pull Request:
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/ope...]
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/jav...]
you should be using [{{BBD.addAnnotatedType(AnnotatedType<?> type, String
id)}}|https://github.com/cdi-spec/cdi/blob/master/api/src/main/java/javax...].
Will send PR shortly.