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

Jozef Hartinger commented on WELD-1023:
---------------------------------------

I don't think that failing the deployment is the right thing to do. I would 
suggest issuing a warning instead. Note that this would probably work only for 
alternative beans with no EL name.
                
> 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