Interceptor.Priority.PLATFORM_BEFORE has a value of 0. It's also a static
and final [1] which makes it a "compile time constant expression" [2]
So according to LJS 13.4.9-2 [3] the compiled annotation should not have
any reference to Interceptor.Priority.PLATFORM_BEFORE.
So 200 + 0 == 200, and that's exactly what you see in your decompiler
output.


[1]
https://docs.oracle.com/javaee/7/api/javax/interceptor/Interceptor.Priority.html#PLATFORM_BEFORE
[2] https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.28
[3] https://docs.oracle.com/javase/specs/jls/se7/html/jls-13.html#jls-13.4.9

Kind regards,
Svetlin

2017-11-09 15:32 GMT+02:00 Frankie <[email protected]>:

> Yes, I saw that in the git repo, but when I download TomEE 7.0.4 PluME, the
> fix seems not to be included, since my built-in check using reflection says
> so ...
>
> Decompiled RequiredInterceptor.class:
> *@Priority(200)*
> instead of:
> *@Priority(Interceptor.Priority.PLATFORM_BEFORE + 200)*
>
>
>
>
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-
> f982480.html
>

Reply via email to