[
https://issues.jboss.org/browse/WELD-1106?page=com.atlassian.jira.plugin....
]
Marko Lukša commented on WELD-1106:
-----------------------------------
Yes, I know section 3.1.5 only talks about lower-casing the first character, but I was
sure this was just an oversight. But as you pointed out, 3.1.5 is consistent with JSF2, so
maybe you are right that this is how it was meant to be. On the other hand, it is a little
surprising that the CDI spec would have two different ways of dealing with what is pretty
much the same thing. Also, the implementation calls java.beans.Introspector.decapitalize()
in both places, which can further be interpreted that it was meant to be consistent with
JavaBeans.
IMO it's more important that CDI is consistent internally, but I've sent a mail to
the cdi-dev mailing list so the guys can comment on this.
Default name for a managed bean is not correct for class name that
starts with two or more upper case letters
-------------------------------------------------------------------------------------------------------------
Key: WELD-1106
URL:
https://issues.jboss.org/browse/WELD-1106
Project: Weld
Issue Type: Bug
Components: Class Beans (Managed and Session)
Affects Versions: 1.1.5.Final
Reporter: Viacheslav Kabanovich
Assignee: Marko Lukša
Attachments: weld-tests-named.jar
"3.1.5. Default name for a managed bean
The default name for a managed bean is the unqualified class name of the bean class,
after converting the first character to
lower case."
For a class named XBean, default name of a managed bean should be xBean. However, in
runtime with Weld 1.1.5, this name is not available in EL, instead name XBean is
available.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira