Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-101

@PreDestroy inherited by session bean not invoked

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.CR1
    • 1.0.0.BETA1
    • None
    • None

      Section 4.2 of the spec states:

      "Suppose a class X is extended directly or indirectly by the bean class of a simple or session bean Y.

      • If X declares an initializer method, @PostConstruct method or @PreDestroy method x() then Y inherits x() if and
        only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y overrides the method x()."

      In the test class org.jboss.jsr299.tck.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest, both:

      • testSubClassInheritsPreDestroyOnSuperclass() and
      • testIndirectSubClassInheritsPreDestroyOnSuperclass() are failing - it seems that the @PreDestroy method is not being invoked for session beans.

              pmuiratbleepbleep Pete Muir (Inactive)
              sbryzak@redhat.com Shane Bryzak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: