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

@Initialized(RequestScoped.class) and related events not always fired during @PostConstruct callback

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.0.0.Final, 2.4.4.Final
    • 2.4.2.SP1, 3.0.0.CR2
    • None
    • None

    Description

      An event with qualifier @Initialized(RequestScoped.class) should be fired when the request context is initialized (and another one before/after it is destroyed). The events are not fired during @PostConstruct callback, if Weld activates the context for the callback only, ie. it was not active before.

      In fact, I don't see any reasonable use case for this but the events should be fired in order to comply with the spec (the TCK currently does not contain a related test).

      We should implement the fix carefully so that the performance overhead is negligible.

      Attachments

        Issue Links

          Activity

            People

              tremes1@redhat.com Tomas Remes
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: