Hi all,

While preparing my CDI advanced talk for Devoxx [1] I made an intensive use of 
DeltaSpike core features, especially the AnnotatedTypeBuilder and discovered a 
bug.
In my talked I wanted to show how to take a third party framework (Drop Wizard 
Metrics) and integrate it with CDI. One step of this integration was to declare 
the @Timed annotation as an interceptor binding using 
BeforeBeanDiscovery#addInterceptorBinding method.
As @Timed contains two members that I wished to become @NonBinding, I decided 
to use DeltaSpike AnnotatedTypeBuilder to create the required AnnotatedType for 
@Timed. I realised that the builded AnnotatedType didn’t contained 2 methods 
but 6 : the 2 @Timed member + the 4 coming from Annotation.
Yesterday I sent a small patch for this bug in DELTASPIKE-781 including test 
related to this bug.

Thanks,

Antoine

[1] : http://www.slideshare.net/antoinesd/going-further-with-cdi-41411812

Reply via email to