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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.0.0.CR1
    • None
    • EJB
    • 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);
      

      Attachments

        Activity

          People

            rhn-engineering-cdewolf Carlo de Wolf
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: