[jboss-jira] [JBoss JIRA] (WFLY-4877) Wrong default managed bean name of backing beans whose name starts with more than 2 capitals
Martin Kouba (JIRA)
issues at jboss.org
Tue Jul 7 07:17:04 EDT 2015
[ https://issues.jboss.org/browse/WFLY-4877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087226#comment-13087226 ]
Martin Kouba commented on WFLY-4877:
------------------------------------
[~bauke] I don't think that CDI-525 will be fixed. The CDI spec is clear although it does not follow the JavaBean spec. On the other hand, this change is backward incompatible. Therefore, there is a configuration property which allows to enforce the legacy strategy to infer the default bean name (see also WELD-1975). Unfortunately, the description did not make it into the reference documentation. The property key is {{org.jboss.weld.bean.defaultNamesFollowJavaBeanRules}}, see also [Weld configuration|http://docs.jboss.org/weld/reference/latest-2.2/en-US/html/configure.html#_weld_configuration].
> Wrong default managed bean name of backing beans whose name starts with more than 2 capitals
> --------------------------------------------------------------------------------------------
>
> Key: WFLY-4877
> URL: https://issues.jboss.org/browse/WFLY-4877
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 9.0.0.Final
> Reporter: Bauke Scholtz
> Assignee: Stuart Douglas
>
> Trigger: http://stackoverflow.com/q/31263272/157882
> The below example bean whose unqualified name starts with more than two capitals
> {code}
> @Named
> public class FOOBean {}
> {code}
> is incorrectly registered with managed bean name of "fOOBean" instead of "FOOBean".
> It worked fine in 9.0.0.CR2.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list