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

Beans with scope @Dependent may not have conditional observer methods

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.0.0.CR1
    • 1.0.0.PREVIEW1
    • Events
    • None

    Description

      According to section 10.4.4 of the 20090625 spec, Beans with scope @Dependent may not have conditional observer methods. If a bean with scope @Dependent has an observer method declared notify=IF_EXISTS, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".

      Currently, the RI does not detect this problem.

      See test org.jboss.jsr299.tck.tests.event.broken.observer.dependentIsConditionalObserver.DependentIsConditionalObserverTest

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            dan.j.allen Dan Allen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: