-
Bug
-
Resolution: Not a Bug
-
Blocker
-
None
-
7.4.0.CD20-CR1
-
None
PreDestroy annotation doesn't work on ConversationScoped together with sessionDestroyed on HttpSessionListener
This issue is a regression against CD19. This could be caused by weld upgrade from 3.1.3 to 3.1.4.
If servlet uses "@Inject private Conversation conversation;" and bean with @ConversationScoped, then method with @PreDestroy annotation on bean should be called after http timeout (it is in CD19, but is not in CD20 = regression). The same for sessionDestroyed method on HttpSessionListener class.
Steps to reproduce:
- Download sources.zip
- Deploy deployment to the server (deploy -f target/custom-application.war)
- Start client
- mvn clean package
- java -jar target/custom-client.jar
- RuntimeException should not be thrown (is not in CD19, but is in CD20)
This issue is tested in ConversationContextDestroyedOnSessionTimeoutTest in Weld TS. This test pass with CD19 but failed with CD20.
- is related to
-
JBEAP-19997 Upgrade weld to 3.1.5 in order to have TS-fix from WELD-2629
- Resolved
-
JBEAP-19912 Fix for WFLY-11115 issue introduce the change of behaviour and needs to be documented
- Closed