Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
In AnnotationDeployer # processCallbacks method, there is a check for each
callback/around....configuration,
LifecycleCallback postConstruct = getFirst(bean.getPostConstruct());
if(postConstruct == null){
for (Method method : classFinder.findAnnotatedMethods(PostConstruct.class)) {
......
}
}
Firstly, code checks that callback is defined on deployment descriptor, if it is
defined, no more annotation check is done. I think that this is not correct
behaviour because it eats interceptors that are defined on "superclasses".
Also, interceptor specification talks about merging annotation and DD.