Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-859

On same named private lifecycle callbacks the super class callback is not called

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.0.0.CR1
    • Component/s: EJB
    • Labels:
      None

      Description

      diff --git a/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/SFSBChild.java b/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/SF
      index 7f32869..97fe239 100644
      --- a/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/SFSBChild.java
      +++ b/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/SFSBChild.java
      @@ -37,7 +37,7 @@ public class SFSBChild extends SFSBParent {
           public static boolean childPostConstructCalled = false;
       
           @PostConstruct
      -    public void child() {
      +    private void postConstruct() {
               childPostConstructCalled = true;
               Assert.assertTrue(SFSBParent.parentPostConstructCalled);
               Assert.assertTrue(InterceptorParent.parentPostConstructCalled);
      diff --git a/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/SFSBParent.java b/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/S
      index d356784..e8d13c4 100644
      --- a/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/SFSBParent.java
      +++ b/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/ejb/interceptor/lifecycle/order/SFSBParent.java
      @@ -33,7 +33,7 @@ public class SFSBParent {
           public static boolean parentPostConstructCalled = false;
       
           @PostConstruct
      -    public void parent() {
      +    private void postConstruct() {
               parentPostConstructCalled = true;
               Assert.assertTrue(InterceptorChild.childPostConstructCalled);
               Assert.assertTrue(InterceptorParent.parentPostConstructCalled);
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                wolfc Carlo de Wolf
                Reporter:
                wolfc Carlo de Wolf
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: