Ron Smeral created DELTASPIKE-739:
-------------------------------------

             Summary: BeanBuilder#readFromType should respect @Typed
                 Key: DELTASPIKE-739
                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-739
             Project: DeltaSpike
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.3
            Reporter: Ron Smeral


{{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:
{code}
public interface Rules {}
{code}
{code}
public class BaseRules implements Rules {}
{code}
{code}
@SomePartialBeanBinding
@Typed(AdminRules.class)
public abstract class AdminRules implements Rules {}
{code}

{code}
public class Controller {
    @Inject private Rules rules;
}
{code}


This causes a deployment exception - ambiguous dependencies. The expected 
behaviour would be, that {{AdminRules}} is not resolvable as {{Rules}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to