4 Replies Latest reply on Oct 24, 2013 4:01 AM by Matthias Bader

    Weld documentation Chapter 16. Portable extensions: QualifiedNameExtension

    Matthias Bader Newbie



      with Weld 2.1.0.CR1 I am trying to get the example for the QualifiedNameExtension running (Chapter 16. Portable extensions).

      After realizing that the method getAnnotation(final Class<T> annType) of the wrapping AnnotatedType (referenced as "wrapped") never get's called, I found out, that replacing the original AnnotatedType by a wrapping AnnotatedType (pat.setAnnotatedType(wrapped)) doesn't work.

      In org.jboss.weld.bootstrap.BeanDeployer#processAnnotatedTypes() and in ProcessAnnotatedTypeImpl.getResultingAnnotatedType() a check is done (ProcessAnnotatedTypeImpl.isDirty()) if the original AnnotatedType has been replaced. If that is the case, the replaced AnnotatedType (this is the wrapped, intended to introduce the extension code) is skipped.


      Is this a bug or am I missing something?


      Thanks in advance for any help!