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

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

      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.

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

                Created:
                Updated:
                Resolved: