<div dir="ltr">OWB handles synthetic methods already AFAIK, surely why we see this behavior</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br><span style="font-size:small">Romain Manni-Bucau</span><br><a href="https://twitter.com/rmannibucau" target="_blank">@rmannibucau</a> |  <a href="http://rmannibucau.wordpress.com" target="_blank">Blog</a> | <a href="https://github.com/rmannibucau" target="_blank">Github</a> | <a href="https://www.linkedin.com/in/rmannibucau" target="_blank">LinkedIn</a> | <a href="http://www.tomitribe.com" target="_blank">Tomitriber</a></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-08-27 14:18 GMT+02:00 arjan tijms <span dir="ltr">&lt;<a href="mailto:arjan.tijms@gmail.com" target="_blank">arjan.tijms@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Aug 27, 2015 at 9:17 AM, Jozef Hartinger &lt;<a href="mailto:jharting@redhat.com">jharting@redhat.com</a>&gt; wrote:<br>
&gt; Agreed, this looks like a bug in Weld.<br>
<br>
I checked on OWB too (using TomEE 7.0-snapshot), this time using the<br>
reproducer as given here: <a href="https://github.com/payara/Payara/issues/407" rel="noreferrer" target="_blank">https://github.com/payara/Payara/issues/407</a><br>
<br>
And on OWB there did not seem to be any problems.<br>
<br>
To double check I added another observer method to the test class that<br>
should fail deployment, namely:<br>
<br>
   public void foo(@Observes String someString, Integer thisshouldFail) {<br>
        List&lt;String&gt; strList = Arrays.asList(&quot;s1&quot;, &quot;s2&quot;, &quot;s3&quot;);<br>
        final int a = 0;<br>
        final int b = 1;<br>
<br>
        strList.forEach((s) -&gt; { System.out.printf(&quot;%s - %d - %d -<br>
%s\n&quot;, someString, a, b, s); });<br>
    }<br>
<br>
And that one indeed failed (as it should).<br>
<br>
So it looks like this particular problem is localized to Weld.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" rel="noreferrer" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
</div></div></blockquote></div><br></div>