Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2242

Cannot add AnnotatedType during BBD and ATD using AnnotatedTypeConfigurator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta1
    • 3.0.0.Alpha17
    • None
    • None

      During BeforeBeanDiscovery and AfterTypeDiscovery lifecycle event user can add new AnnotatedTypes using jaddAnnotatedType(java.lang.Class<T>, java.lang.String) which returns new AnnotatedTypeConfigurator.

      Problem is that in Weld these ATs are never actually added because corresponding AbstractAnnotatedTypeRegisteringEvent#finish is called too early and the "additionalAnnotatedTypes" is overwritten in the following lifecycle event.

              tremes1@redhat.com Tomas Remes
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: