[
https://issues.jboss.org/browse/WELD-974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628361#comment-12628361
]
Geoffrey De Smet commented on WELD-974:
---------------------------------------
Here's the pull request with the failing testcase:
https://github.com/weld/core/pull/134
> @Alternative @Specializes does not work
> ---------------------------------------
>
> Key: WELD-974
> URL: https://issues.jboss.org/browse/WELD-974
> Project: Weld
> Issue Type: Bug
> Reporter: Geoffrey De Smet
> Priority: Critical
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues