Matěj Novotný created WFLY-14457:
------------------------------------
Summary: Modules declaring dependency on CDI should get access to common
annotations as well
Key: WFLY-14457
URL:
https://issues.redhat.com/browse/WFLY-14457
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Reporter: Matěj Novotný
Assignee: Matěj Novotný
Fix For: 23.0.0.Beta1
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
--
This message was sent by Atlassian Jira
(v8.13.1#813001)