<div class="gmail_quote">I don&#39;t see a problem with that at all.&nbsp; Just not supporting static method specialization it seems to be the best choice to me.&nbsp; <br><div><div></div><div class="Wj3C7c"><br><div class="gmail_quote">
On Sat, Nov 15, 2008 at 1:36 AM, Gavin King <span dir="ltr">&lt;<a href="mailto:gavin@hibernate.org" target="_blank">gavin@hibernate.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Chris.<br>
<br>
What I&#39;m thinking is simply to not define/support specialization for<br>
static producers.<br>
<br>
I think that&#39;s fine....<br>
<br>
Do you see a problem with that?<br>
<div><div></div><div><br>
On Fri, Nov 14, 2008 at 1:52 PM, Chris Dempsey &lt;<a href="mailto:cdallas@gmail.com" target="_blank">cdallas@gmail.com</a>&gt; wrote:<br>
&gt; Hi all. &nbsp;I&#39;ve been a lurker on the list for a while and have been reading<br>
&gt; and studying the spec like a mad man. &nbsp;If I go off the rails here feel free<br>
&gt; to let me know. :)<br>
&gt;<br>
&gt; The only thing I can think of as a possible issue with this is Web Bean<br>
&gt; specialization? &nbsp;Static methods cannot be overridden and only hidden by<br>
&gt; sub-classes and the declared type (any actual instance is ignored) is used<br>
&gt; to resolve which static method is called. &nbsp;If you had a static<br>
&gt; Foo#producerMethod and a specialization of a static MockFoo#producerMethod<br>
&gt; Web Beans would have to know to call MockFoo.producerMethod and couldn&#39;t<br>
&gt; rely on Foo.producerMethod to resolve polymorphically to the specialized<br>
&gt; producer method.<br>
&gt;<br>
&gt; I don&#39;t think it would be a problem that couldn&#39;t be overcome but it would<br>
&gt; seem to complicate the specialization rules quite a bit.<br>
&gt;<br>
&gt; On Fri, Nov 14, 2008 at 11:50 AM, Gavin King &lt;<a href="mailto:gavin@hibernate.org" target="_blank">gavin@hibernate.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; ---------- Forwarded message ----------<br>
&gt;&gt; From: Gavin King &lt;<a href="mailto:gavin@hibernate.org" target="_blank">gavin@hibernate.org</a>&gt;<br>
&gt;&gt; Date: Fri, Nov 14, 2008 at 12:50 PM<br>
&gt;&gt; Subject: static producers<br>
&gt;&gt; To: Java Community Process JSR #299 Expert List &lt;<a href="mailto:JSR-299-EG@jcp.org" target="_blank">JSR-299-EG@jcp.org</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Question:<br>
&gt;&gt;<br>
&gt;&gt; should we allow producer methods and fields to be declared &quot;static&quot;?<br>
&gt;&gt;<br>
&gt;&gt; This would mean that the Web Bean manager does not need to instantiate<br>
&gt;&gt; an instance of the Web Bean that declares the producer method/field<br>
&gt;&gt; when invoking the method/field.<br>
&gt;&gt;<br>
&gt;&gt; I can&#39;t think of a good reason why *not*...<br>
&gt;&gt;<br>
&gt;&gt; Furthermore, should we allow static observer and disposal methods?<br>
&gt;&gt; Again, I can&#39;t quite think of a reason why *not*...<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Gavin King<br>
&gt;&gt; <a href="mailto:gavin.king@gmail.com" target="_blank">gavin.king@gmail.com</a><br>
&gt;&gt; <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
&gt;&gt; <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
&gt;&gt; <a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Gavin King<br>
&gt;&gt; <a href="mailto:gavin.king@gmail.com" target="_blank">gavin.king@gmail.com</a><br>
&gt;&gt; <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
&gt;&gt; <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
&gt;&gt; <a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; webbeans-dev mailing list<br>
&gt;&gt; <a href="mailto:webbeans-dev@lists.jboss.org" target="_blank">webbeans-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; webbeans-dev mailing list<br>
&gt; <a href="mailto:webbeans-dev@lists.jboss.org" target="_blank">webbeans-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div>Gavin King<br>
<a href="mailto:gavin.king@gmail.com" target="_blank">gavin.king@gmail.com</a><br>
<a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
<a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
<a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
</div></div></blockquote></div><br>
</div></div></div><br>