[cdi-dev] [JBoss JIRA] (CDI-732) Clarify that the Context for RequestScoped must be active during @PreDestroy calls
Mark Struberg (JIRA)
issues at jboss.org
Mon Jul 2 07:39:00 EDT 2018
Mark Struberg created CDI-732:
Summary: Clarify that the Context for RequestScoped must be active during @PreDestroy calls
Project: CDI Specification Issues
Issue Type: Feature Request
Affects Versions: 2.0 .Final
Reporter: Mark Struberg
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.
This message was sent by Atlassian JIRA
More information about the cdi-dev