Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-732

Clarify that the Context for RequestScoped must be active during @PreDestroy calls

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • None
    • 2.0 .Final
    • Contexts
    • None

    Description

      We have the explicit rule that the Context for @RequestScoped must be active during @PostConstruct of any bean.
      But it seems we don't force the same for invocations of @PreDestroy methods.

      That's especially weird since a few containers now blow up during a destroyal of a @SessionScopedBean which has a @RequestScoped Principal injected, even if the session destroyal was triggered by an explicit Session#invalidate() call in an open HTTP request.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              struberg Mark Struberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: