Right now, a too general message like _"Enabled alternative X is not an alternative"_ is used. Something like _"Enabled alternative X is not a bean class of the synthetic bean archive"_ will be more useful. We will have to detect this error during {{org.jboss.weld.environment.se.Weld.initialize()}}. This is also not consistent comparing to enabled interceptor/decorator which are automatically added to bean classes so we will remove this automatic addition.
|