Description
BeanBuilder#readFromType currently includes all superclasses of a type in the set of bean types and it does not respect the @Typed annotation.
This currently also causes a problem with PartialBeans which use @Typed.
Example:
public interface Rules {}
public class BaseRules implements Rules {}
@SomePartialBeanBinding @Typed(AdminRules.class) public abstract class AdminRules implements Rules {}
public class Controller { @Inject private Rules rules; }
This causes a deployment exception - ambiguous dependencies. The expected behaviour would be, that AdminRules is not resolvable as Rules.