[weld-issues] [JBoss JIRA] (WELD-974) @Alternative @Specializes does not work
Geoffrey De Smet (Resolved) (JIRA)
jira-events at lists.jboss.org
Thu Nov 24 07:16:42 EST 2011
[ https://issues.jboss.org/browse/WELD-974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet resolved WELD-974.
-----------------------------------
Fix Version/s: 1.1.4.Final
Resolution: Done
This is fixed in 1.1.4.Final, probably by Ales's work.
I 'll poke him to add the regression test to weld's master if he hasn't a similar one already.
> @Alternative @Specializes does not work
> ---------------------------------------
>
> Key: WELD-974
> URL: https://issues.jboss.org/browse/WELD-974
> Project: Weld
> Issue Type: Bug
> Affects Versions: 1.1.2.Final
> Reporter: Geoffrey De Smet
> Priority: Critical
> Fix For: 1.1.4.Final
>
>
> See pull request with testcase.
> {code}
> @ApplicationScoped
> @Named("namedFoo") // doesn't matter if it's @Named or not
> public class NamedFoo
> {
> }
> @Alternative @Specializes
> public class SpecializesNamedFoo extends NamedFoo
> {
> }
> @Test
> public void testSpecializationWithAlternative()
> {
> Assert.assertEquals(NamedFoo.class, beanManager.resolve(beanManager.getBeans(NamedFoo.class)).getBeanClass()); // FAILS WITH NPE!
> }
> {code}
--
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