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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.4.2.SP1, 3.0.0.CR2
    • Fix Version/s: 3.0.0.Final, 2.4.4.Final
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tremes Tomas Remes
                  Reporter:
                  mkouba Martin Kouba
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: