<div dir="ltr">Agreed! I think Weld should be changed to comply with what CDI Spec says.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 12:30 PM, Martin Kouba (JIRA) <span dir="ltr">&lt;<a href="mailto:issues@jboss.org" target="_blank">issues@jboss.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
    [ <a href="https://issues.jboss.org/browse/CDI-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13065411#comment-13065411" target="_blank">https://issues.jboss.org/browse/CDI-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13065411#comment-13065411</a> ]<br>
<br>
Martin Kouba commented on CDI-525:<br>
----------------------------------<br>
<br>
It seems that OWB follows the current spec wording - see also [WebBeansUtil.getManagedBeanDefaultName()|<a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.openwebbeans/openwebbeans-impl/1.2.7/org/apache/webbeans/util/WebBeansUtil.java#WebBeansUtil.getManagedBeanDefaultName%28java.lang.String%29" target="_blank">http://grepcode.com/file/repo1.maven.org/maven2/org.apache.openwebbeans/openwebbeans-impl/1.2.7/org/apache/webbeans/util/WebBeansUtil.java#WebBeansUtil.getManagedBeanDefaultName%28java.lang.String%29</a>]. Given that the change would be backwards incompatible and not all implementations behave in the same way I&#39;m not so sure it&#39;s a good idea anymore.<br>
<span class=""><br>
&gt; Default names should maybe follow the inferring rules from the JavaBean spec<br>
</span>&gt; ----------------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;                 Key: CDI-525<br>
&gt;                 URL: <a href="https://issues.jboss.org/browse/CDI-525" target="_blank">https://issues.jboss.org/browse/CDI-525</a><br>
&gt;             Project: CDI Specification Issues<br>
&gt;          Issue Type: Clarification<br>
&gt;    Affects Versions: 1.2.Final<br>
&gt;            Reporter: Martin Kouba<br>
&gt;<br>
&gt; *3.1.5. Default bean name for a managed bean*:<br>
&gt; {quote}<br>
&gt; The default name for a managed bean is the unqualified class name of the bean class, after converting the first character to lower case.<br>
&gt; {quote}<br>
&gt; As a result, the default name for a bean class {{URLMatcher}} should be {{uRLMatcher}}. On the other hand the JavaBean spec is using different rules when inferring property names, *8.8 Capitalization of inferred names*:<br>
&gt; {quote}<br>
&gt; However to support the occasional use of all upper-case names, we check if the first two characters of the name are both upper case and if so leave it alone.<br>
&gt; {quote}<br>
&gt; I.e. the property name for getter {{getURLMatcher()}} woud be {{URLMatcher}}.<br>
&gt; Note that there is no TCK test for this and so implementations may differ (issue is already filed: CDITCK-473). Weld is using {{java.beans.Introspector.decapitalize()}} and so it follows the JavaBean spec even now. I&#39;m not sure about OpenWebBeans.<br>
<br>
<br>
<br>
--<br>
This message was sent by Atlassian JIRA<br>
(v6.3.15#6346)<br>
_______________________________________________<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" 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" 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><br clear="all"><br>-- <br><div class="gmail_signature">Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div>