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

Beans with scope @Dependent may not have conditional observer methods

XMLWordPrintable

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

      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

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

                Created:
                Updated:
                Resolved: