Thomas Penne commented on Bug WELD-1322

Hi Martin, first of all: thank you for studying my issue.
I could not reproduce this bug either executing your code and using both 2.0.0.Alpha3 and 2.0.0.Beta1 versions of weld-se dependency. In fact your code made me realize my use case was a little bit different.
If I report my real use case in you code, I forgot to mention I have an additional method in class Tree :
public void init() throws Exception {
super.init();
}
So I read the specification again and I found out that if the subclass overrides the @PostConstruct method (not necessarily with an @PostConstruct method) then the base class method is not called. Did I understand the specification correctly ?

So, this means the fact that my @PostConstruct method in base class is not called is perfectly normal as my init method in subclass is never called ! However something is still bothering me: I executed my use case with 2.0.0.Beta1 and the base class @PostConstruct method was not called (as expected) but when I executed the same code with 2.0.0.Alpha3, the base class @PostConstruct WAS called. Does these different behavior normal ?

Once again, thanks a lot for your help

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to