-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
Undefined
-
---
-
---
The actual POM dependency chain in CDI is:
CDI -> interceptors API -> common annotations API
However, WFLY modules don't mimic this and WFLY modules depending on CDI need to explicitly depend on common annotations in order to enable functionalities such as @PreDestroy on their beans (which is how we discovered this as part of WFLY-13588).
There are two solutions:
- Change interceptors module to depend on common annotations and export it
- This is more complex because they each exist in different project (wfly versus core)
- Furthermore, interceptors likely only have the dependency because of javadoc
- We add common annotations as CDI module dependency and export is
- After chat with Brian, we chose this as the go-to solution