[webbeans-issues] [JBoss JIRA] Closed: (WBTCK-29) TCK - DeploymentTypeDefinitionTest [testDeploymentTypeDeclaredInheritedIsBlockedByIntermediateDeploymentTypes

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Mar 13 20:04:42 EDT 2009


     [ https://jira.jboss.org/jira/browse/WBTCK-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WBTCK-29.
--------------------------

    Fix Version/s: 1.0.0.Beta2
       Resolution: Rejected
         Assignee: Pete Muir


"4.1. Inheritance of type-level metadata
Suppose a class X is extended directly or indirectly by the bean class of a simple or session bean Y.

...

• If X is annotated with a deployment type Z then Y inherits the annotation if and only if Z declares the @Inherited
meta-annotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares a de-
ployment type. "

Here we are testing that Y doesn't inherit X's deployment type - X (Dog) indirectly extended by Y (GoldenRetriever) where some intermediate class (a subclass of X and a superclass of Y) declares a deployment type.


> TCK - DeploymentTypeDefinitionTest [testDeploymentTypeDeclaredInheritedIsBlockedByIntermediateDeploymentTypes
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: WBTCK-29
>                 URL: https://jira.jboss.org/jira/browse/WBTCK-29
>             Project: JSR-299 TCK
>          Issue Type: Feature Request
>            Reporter: Gurkan Erdogdu
>            Assignee: Pete Muir
>             Fix For: 1.0.0.Beta2
>
>
> Hi;
> class GoldenRetriever extends Retriever
> @NotInheritedDeploymentType
> class Retriever extends Dog
> @AnotherDeploymentType
> class Dog
> In this test case, GoldenRetriever does not inherit the Dog's deployment type in the TCK. But,  I think that if  bean does not define DeploymentType then it inherits deployment type from their super classes, directly or indirectly. Therefore, I think it inherits the Dog's deployment type.
> It is good idea to inherit from the superclasses if  intermediate classes does not provide types, even if provide but not inherited.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the weld-issues mailing list