[
https://issues.jboss.org/browse/WELD-1106?page=com.atlassian.jira.plugin....
]
Viacheslav Kabanovich commented on WELD-1106:
---------------------------------------------
Marko, what you say on producer method, agrees completely with JSR-299:
"3.3.8. Default name for a producer method
The default name for a producer method is the method name, unless the method follows the
JavaBeans property getter
naming convention, in which case the default name is the JavaBeans property name."
But the rule for computing the default name for a managed bean is given independently, by
section 3.1.5.
I have compared CDI managed beans to JSF 2 managed beans. I run application at JBoss AS
7.1 and change annotation at bean from @Named to @ManagedBean and back. When bean is
annotated @ManagedBean, the bean name is "gMOCarp", so that JSF 2
'complies' with JSR-299, 3.1.5. When it is annotated @Named, the bean name is
"GMOCarp".
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