You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Shawn Jiang (JIRA)" <ji...@apache.org> on 2011/04/25 11:08:05 UTC
[jira] [Resolved] (OPENEJB-1299) callback method search is not
considering the overriding rule.
[ https://issues.apache.org/jira/browse/OPENEJB-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shawn Jiang resolved OPENEJB-1299.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.1.3
fixed.
> callback method search is not considering the overriding rule.
> --------------------------------------------------------------
>
> Key: OPENEJB-1299
> URL: https://issues.apache.org/jira/browse/OPENEJB-1299
> Project: OpenEJB
> Issue Type: Bug
> Components: container system
> Affects Versions: 3.1.3
> Environment: 3.1.3-snapshot , geronimo 2.2.1 jetty release
> Reporter: Shawn Jiang
> Fix For: 3.1.3
>
> Attachments: 1299_31branch.patch, 1299_trunk.patch, OPENEJB-1299.diff
>
>
> Considering following scenario:
> Bean is a EJB, BeanSuper is the Bean's super class.
> BeanSuper {
> @PostConstruct
> private void postConstructMethodInBeanSuper() throws RuntimeException {
> System.out.println( " post construct method in bean super")
> }
> }
> @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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira