Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-491

Clarify what happens when an interceptor doesn't have any @AroundInvoke or lifecycle annotation

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 1.2.Final
    • Interceptors
    • None

      At the moment, if you enable an interceptor in beans.xml and the class is not annotated with @Inteceptor, WELD throws an exception. But if the interceptor has no @AroundInvoke, @AroundConstrcut, @PostConstruct or @PreDestroy, then WELD stays silent and the interceptor doesn't work.

      The spec should clarify that, at least, one of these four annotation has to be used otherwise it's not considered a valid interceptor.

            Unassigned Unassigned
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: