<div dir="ltr">Ok, guy,<div><br></div><div>From what I understand, the majority think this feature is useful in the spec but would like a better proposal than the PR. Got it. I received a lot of private message following my yesterday mail to express reserve for the proposed PR.</div><div>So let&#39;s continue looking for a better approach and let&#39;s continue working on other CDI 2.0 features as well.</div><div><br></div><div>Antoine</div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 15 févr. 2016 à 12:09, Mark Struberg &lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
&gt; Am 15.02.2016 um 09:29 schrieb Martin Kouba &lt;<a href="mailto:mkouba@redhat.com" target="_blank">mkouba@redhat.com</a>&gt;:<br>
&gt;<br>
&gt; Do you mean to simply ignore the method? If we do (the current<br>
&gt; non-portable solution of OWB and Weld) a user might be suprised why a<br>
&gt; method invoked on a proxy does not reach the target instance (it will be<br>
&gt; invoked upon a client proxy instance). Miserable default behavior I<br>
&gt; believe. And this will happen for a client proxy for non-interface bean<br>
&gt; types.<br>
<br>
Technically that is afaik the only possible option we do have as long as we don’t rewrite the bytecode of the _original_ class. And that might be pretty hard to do for classes coming from the JDK for example ;)<br>
<br>
<br>
As Jens perfectly nailed it:<br>
a.) The user explicitly declares „Yes, I know what I do and I’ll live with the consequences“ and<br>
b.) Those are most times protected or package-default methods.<br>
<br>
I think this will mostly happen with self-injection. And this will only happen to be a problem for CDI and NIV (as in ‚classic‘ EJBs you only can call ‚business methods‘ even for self injection. And business methods are always only public methods).<br>
Of course that is an important use case, which you really need from time to time. But how often does ‚Random Jo/anna‘ programmer use this? In my experience there is a balance of 1:10000 self-injection methods vs general CDI method.<br>
It’s mostly used by experts who know what they do.<br>
<br>
LieGrue,<br>
strub<br>
_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">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>
</blockquote></div>