[weld-issues] [JBoss JIRA] (WELD-1106) Default name for a managed bean is not correct for class name that starts with two or more upper case letters

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Apr 12 20:13:47 EDT 2012


     [ https://issues.jboss.org/browse/WELD-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viacheslav Kabanovich updated WELD-1106:
----------------------------------------

    Attachment: weld-tests-named.jar


Test is attached as addition to https://github.com/weld/core/tree/master/tests-arquillian/src/test/java/org/jboss/weld/tests/named
It reuses interface org.jboss.weld.tests.named.Fish to define bean org.jboss.weld.tests.named.GMOCarp by analogy with org.jboss.weld.tests.named.Carp, and test org.jboss.weld.tests.named.SmokeNamed2Test checks that bean manager has bean named "gMOCarp" rather than "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
>         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

        


More information about the weld-issues mailing list