[jbosstools-issues] [JBoss JIRA] (JBIDE-11540) Bean stereotypes are computed incorrectly
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed May 2 15:31:25 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-11540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov resolved JBIDE-11540.
------------------------------------
Assignee: Viacheslav Kabanovich (was: Alexey Kazakov)
Resolution: Done
Yes, this was fixed for Beta3. Just verified.
> Bean stereotypes are computed incorrectly
> -----------------------------------------
>
> Key: JBIDE-11540
> URL: https://issues.jboss.org/browse/JBIDE-11540
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: CDI
> Affects Versions: 3.3.0.Beta1
> Reporter: Viacheslav Kabanovich
> Assignee: Viacheslav Kabanovich
> Fix For: 3.3.0.Beta3
>
>
> If a bean is annotated by stereotype A it inherits all additional stereotypes declared in A (see 2.7.1.5). All those stereotypes are to be taken into account when computing bean name, scope, enablement, and looking for @alternative. Additional stereotypes are inherited independently of annotation @Inherit on stereotype, which only controls inheritance from super classes.
> Test that shows the problem with named beans:
> EXECUTE: Create stereotypes FirstStereotype, SecondStereotype and bean Bean
> {code}
> @Stereotype
> @Named
> @Target({ TYPE})
> @Retention(RUNTIME)
> @Documented
> public @interface FirstStereotype {
> }
> {code}
> {code}
> @Stereotype
> @FirstStereotype
> @Target({ TYPE})
> @Retention(RUNTIME)
> @Documented
> public @interface SecondStereotype {
> }
> {code}
> {code}
> @SecondStereotype
> public class Bean {
> }
> {code}
> ASSERT: EL name "bean" 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 jbosstools-issues
mailing list