Gee, I fear this is not really well specified. 
I'd rather not bet for it to work.
Honestly I would have expected that an AmbiguousResolutionException gets thrown.

I'd use @Exclude or @Specializes in this case.

LieGrue,
strub




----- Original Message -----
> From: Thomas Andraschko <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Tuesday, 29 October 2013, 21:23
> Subject: Alternative + Named
> 
> Hi,
> 
> should it actually be possible to overwrite a bean with a alternative named
> bean?
> 
> e.g ->
> 
> @Named public class A
> 
> with a activated
> 
> @Named("a") @Alternative public class A extends B
> 
> 
> This somehow just works randomly. Every X container startup, the right bean
> will be used with EL.
> 
> Thanks.
> 
> Regards,
> Thomas
> 

Reply via email to