Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.1.3
-
None
-
3.1.3-snapshot , geronimo 2.2.1 jetty release
Description
Considering following scenario:
Bean is a EJB, BeanSuper is the Bean's super class.
BeanSuper {
@PostConstruct
private void postConstructMethodInBeanSuper() throws RuntimeException
}
@Stateless(name="Bean")
Bean extends BeanSuper {
protected void postConstructMethodInBeanSuper() throws RuntimeException
{ System.out.println( " post construct method in bean") }}
When container invoke the @postconstruct callback method. It should call BeanSuper#postConstructMethodInBeanSuper() instead of Bean#postConstructMethodInBeanSuper() because BeanSuper#postConstructMethodInBeanSuper() is a private method that can't be overridden.