[ 
https://issues.jboss.org/browse/WELD-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651478#comment-12651478
 ] 

Geoffrey De Smet commented on WELD-1023:
----------------------------------------

@Jozef: Unused means that it is not injected anywhere.
Basically, I was doing <alternatives> configuration in the wrong beans.xml
and because it didn't fail-fast is mistakenly supposed the alternative was 
activated, while it was not.

Feel free to resolve this issue as won't fix if you believe it's too far 
fetched.

PS: I 've replaced my @Alternative usage with @Specializes (which doesn't 
suffer from CDI-18) and that works like a charm.
                
> Fail-fast when an <alternative> declaration in beans.xml is unused
> ------------------------------------------------------------------
>
>                 Key: WELD-1023
>                 URL: https://issues.jboss.org/browse/WELD-1023
>             Project: Weld
>          Issue Type: Enhancement
>            Reporter: Geoffrey De Smet
>            Priority: Optional
>
> I have this in my beans.xml:
>   <alternatives>
>     
> <class>org.drools.guvnor.server.repository.TestRepositoryStartupService</class>
>   </alternatives>
> The class exists, but because of whatever reason (CDI-18 in this case), it's 
> not used.
> Yet, everything starts up happily and I think I am using my alternative 
> (while I am not).

--
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

        
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to