@PostConstruct not executed in 4.5.1 [message #1714557] |
Fri, 13 November 2015 09:23  |
Eclipse User |
|
|
|
Hi,
A few days ago I updated from 4.4.1 to 4.5.1 but now my methods annotated with @PostConstruct are not executed anymore.
Looking at and debugging the code, I found out that my method has another instance of the PostConstruct interface in its declaredAnnotations map and therefore does not match the "if (!method.isAnnotationPresent(annotation))" check in InjectorImpl.
I then realized that my method used the javax.annotation_1.2.jar instead of the rt.jar's javax.annotation package and removed the requirement from the Manifest file but still the Object ID of the annotation on the method differs from the one used in InjectorImpl although the same package is now used.
Is there anything I am missing here? Has PostConstruct been unsupported?
Thanks for your replies
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05462 seconds