[jboss-jira] [JBoss JIRA] (WFLY-9748) Support new method-level "@Priority" annotation

Matej Novotny (JIRA) issues at jboss.org
Wed Feb 14 06:35:00 EST 2018


    [ https://issues.jboss.org/browse/WFLY-9748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13533016#comment-13533016 ] 

Matej Novotny edited comment on WFLY-9748 at 2/14/18 6:34 AM:
--------------------------------------------------------------

[~dmlloyd] priority annotation from Common Annotations 1.3 gained [*PARAMETER* applicability level|https://github.com/javaee/javax.annotation/blob/master/src/main/java/javax/annotation/Priority.java#L66], not METHOD.
See also chapter 2.7 in [spec|http://download.oracle.com/otndocs/jcp/common_annotations-1_3-mrel3-spec/].

Which means that this issue isn't really relevant for interceptors. Those are, at least in CDI, still sorted based on class-level priority annotation.
What we use this param-level annotation for in CDI/Weld is observer ordering. As can be seen in [this|https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/priority/MoonObservers.java#L40] or [this|https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/priority/MoonObservers.java#L40] test.


was (Author: manovotn):
Common Annotations 1.3 gained [*PARAMETER* applicability level|https://github.com/javaee/javax.annotation/blob/master/src/main/java/javax/annotation/Priority.java#L66], not METHOD.
See also chapter 2.7 in [spec|http://download.oracle.com/otndocs/jcp/common_annotations-1_3-mrel3-spec/].

Which means that this issue isn't really relevant for interceptors. Those are, at least in CDI, still sorted based on class-level priority annotation.
What we use this param-level annotation for in CDI/Weld is observer ordering. As can be seen in [this|https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/priority/MoonObservers.java#L40] or [this|https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/priority/MoonObservers.java#L40] test.

> Support new method-level "@Priority" annotation
> -----------------------------------------------
>
>                 Key: WFLY-9748
>                 URL: https://issues.jboss.org/browse/WFLY-9748
>             Project: WildFly
>          Issue Type: Enhancement
>          Components: CDI / Weld, EE, EJB
>            Reporter: David Lloyd
>            Priority: Critical
>              Labels: JavaEE8
>             Fix For: 12.0.0.Alpha1
>
>
> The {{@Priority}} annotation in Common Annotations 1.3 has gained a METHOD applicability level.  We must ensure that our interceptor metadata processing picks up these annotations.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list