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

Raise a warning if javax.annotation.Priority cannot be found

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      When using Weld on Java 9 and the java.xml.ws.annotation module is enabled, interceptors won't be registered. The reason being, that this module contains only a subset of the Commons Annotation API, in particular, @Priority isn't there. The code (AnnotationApiAbstraction) for retrieving inceptor priorities in Weld is very defensive, it just returns null if the annotation type isn't present, causing interceptors not being picked up.

      Having a warning about that annotation type (and potentially others) missing, would help users to understand that very subtle issue. Currently, interceptors just won't be applied without any error or warning whatsoever.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gunnar.morling Gunnar Morling
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: