<font size=2 face="sans-serif">Thank you Martin, Tomas and Matej for your
quick response! </font>
<br>
<br><font size=2 face="sans-serif">Martin, it looks like the two issues
you mentioned might be the reason for the Interceptor wording changes.</font>
<br>
<br><font size=2 face="sans-serif">As suggested by Tomas, we did a bit
experiments.</font>
<br>
<br><font size=2 face="sans-serif">In the following code snippet</font>
<br>
<br><font size=2 face="Courier New">@Interceptors (Interceptor0.class)</font>
<br><font size=2 face="Courier New">public class MyBean{</font>
<br>
<br><font size=2 face="Courier New">public void myMethod(){</font>
<br><font size=2 face="Courier New">}</font>
<br><font size=2 face="Courier New">}</font>
<br><font size=2 face="Courier New">Interceptor binding: MyInterceptorBinding</font>
<br>
<br><font size=2 face="Courier New">public class Interceptor0 {</font>
<br>
<br><font size=2 face="Courier New">}</font>
<br>
<br><font size=2 face="sans-serif">We verified the current Weld behaviour:</font>
<br>
<br>
<br><font size=2 face="sans-serif">1. add @Interceptor, @Priority(1), @</font><font size=2 face="Courier New">MyInterceptorBinding</font><font size=2 face="sans-serif">
to Interceptor0</font>
<br><font size=2 face="sans-serif">The interceptor0 was invoked twice on
invoking myMethod - basically the @Interceptor annotation is not ignored.</font>
<br>
<br><font size=2 face="sans-serif">2. add &nbsp;@Interceptor, @Priority(1)
to Interceptor0</font>
<br><font size=2 face="sans-serif">The Interceptor0 was invoked once, which
means @Interceptor annotation is ignored, which corresponds to the issue
[1].</font>
<br>
<br><font size=2 face="sans-serif">3. add @Interceptor, @</font><font size=2 face="Courier New">MyInterceptorBinding</font>
<br><font size=2 face="sans-serif">The interceptor0 was invoked once, which
means @Interceptor annotation is ignored, which corresponds to the issue
[2]</font>
<br>
<br>
<br><font size=2 face="sans-serif">According to Interceptor updated sentence
(</font><tt><font size=2>&quot;The Interceptor annotation is ignored on
interceptor classes bound <br>
&gt;&gt; using the Interceptors annotation.&quot;</font></tt><font size=2 face="sans-serif">)
, the spec wording seems to suggest to ignore the @Interceptor binding
completely for the above 3 scenarios, which means the Interceptor0 should
only be invoked once. Which do you think? This seems to be a behaviour
change. If this is the case, we need to suggest to the Interceptor spec
for more clarification.</font>
<br>
<br><font size=2 face="sans-serif">[1] </font><a href="https://github.com/javaee/interceptors-spec/issues/27"><font size=2 color=blue face="sans-serif">https://github.com/javaee/interceptors-spec/issues/27</font></a>
<br><font size=2 face="sans-serif">[2] </font><a href="https://github.com/javaee/interceptors-spec/issues/23"><font size=2 color=blue face="sans-serif">https://github.com/javaee/interceptors-spec/issues/23</font></a>
<br><font size=2 face="sans-serif">Many thanks,<br>
Emily<br>
===========================<br>
Emily Jiang<br>
WebSphere Application Server, CDI &amp; MicroProfile Development Lead</font>
<br><font size=2 face="sans-serif">&nbsp;<br>
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
Phone: &nbsp;+44 (0)1962 816278 &nbsp;Internal: 246278<br>
<br>
Email: emijiang@uk.ibm.com <br>
Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Martin Kouba &lt;mkouba@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Emily Jiang &lt;EMIJIANG@uk.ibm.com&gt;,
weld-dev &lt;weld-dev@lists.jboss.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">01/06/2017 08:17</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [weld-dev]
Interceptor &amp; Interceptors</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Tomas Remes pointed out that the new/upcoming version
contains the new <br>
sentence which also mentions @Interceptor.<br>
<br>
I think it's related to:<br>
</font></tt><a href="https://github.com/javaee/interceptors-spec/issues/27"><tt><font size=2>https://github.com/javaee/interceptors-spec/issues/27</font></tt></a><tt><font size=2><br>
<br>
But it's hard to guess as it's not possible to track the changes - <br>
sources are binary files.<br>
<br>
Martin<br>
<br>
<br>
Dne 1.6.2017 v 08:07 Martin Kouba napsal(a):<br>
&gt; Hi Emily,<br>
&gt; <br>
&gt; I suppose you're talking about section 5.3 Ordering Interceptors using
<br>
&gt; the Priority Annotation:<br>
&gt; &quot;The Priority annotation is ignored on interceptors bound to
a component <br>
&gt; using the Interceptors annotation.&quot;<br>
&gt; <br>
&gt; There is a very old clarification issue for the interceptor spec:<br>
&gt; </font></tt><a href="https://github.com/javaee/interceptors-spec/issues/23"><tt><font size=2>https://github.com/javaee/interceptors-spec/issues/23</font></tt></a><tt><font size=2><br>
&gt; (originally INTERCEPTORS_SPEC-23)<br>
&gt; <br>
&gt; Martin<br>
&gt; <br>
&gt; Dne 31.5.2017 v 14:53 Emily Jiang napsal(a):<br>
&gt;&gt; Hi Martin,<br>
&gt;&gt;<br>
&gt;&gt; In the updated Interceptor spec, it has the following statement:<br>
&gt;&gt;<br>
&gt;&gt; &quot;The Interceptor annotation is ignored on interceptor classes
bound <br>
&gt;&gt; using the Interceptorsannotation.&quot;<br>
&gt;&gt;<br>
&gt;&gt; I assume this already the case in Weld 2.x, CDI 1.2 implementation.
<br>
&gt;&gt; Right?<br>
&gt;&gt;<br>
&gt;&gt; Many thanks,<br>
&gt;&gt; Emily<br>
&gt;&gt; ===========================<br>
&gt;&gt; Emily Jiang<br>
&gt;&gt; WebSphere Application Server, CDI &amp; MicroProfile Development
Lead<br>
&gt;&gt;<br>
&gt;&gt; MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
&gt;&gt; Phone: &nbsp;+44 (0)1962 816278 &nbsp;Internal: 246278<br>
&gt;&gt;<br>
&gt;&gt; Email: emijiang@uk.ibm.com<br>
&gt;&gt; Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
&gt;&gt;<br>
&gt;&gt; Unless stated otherwise above:<br>
&gt;&gt; IBM United Kingdom Limited - Registered in England and Wales with
<br>
&gt;&gt; number 741598.<br>
&gt;&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire
PO6 <br>
&gt;&gt; 3AU<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; weld-dev mailing list<br>
&gt;&gt; weld-dev@lists.jboss.org<br>
&gt;&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/weld-dev"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/weld-dev</font></tt></a><tt><font size=2><br>
&gt;&gt;<br>
&gt; <br>
<br>
-- <br>
Martin Kouba<br>
Senior Software Engineer<br>
Red Hat, Czech Republic<br>
<br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font>