[weld-issues] [JBoss JIRA] Closed: (CDITCK-146) org.jboss.jsr299.tck.interceptors.tests.lifecycleCallback.LifecycleCallbackInterceptorTest assumes that getTarget() will return a bean of the intercepted bean type

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Tue Apr 27 14:35:10 EDT 2010


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

Marius Bogoevici closed CDITCK-146.
-----------------------------------

    Resolution: Done


Introduced Animal.getAnimalType() for uniquely identifying animal types.

vetinari:cdi-tck marius$ svn ci -m "CDITCK-146 replace relying on getClass() by a polymorphic method overridden in each of Animal's hierarchy classes"
Sending        impl/src/main/java/org/jboss/jsr299/tck/interceptors/tests/lifecycleCallback/Animal.java
Sending        impl/src/main/java/org/jboss/jsr299/tck/interceptors/tests/lifecycleCallback/AnimalInterceptor.java
Sending        impl/src/main/java/org/jboss/jsr299/tck/interceptors/tests/lifecycleCallback/Cow.java
Sending        impl/src/main/java/org/jboss/jsr299/tck/interceptors/tests/lifecycleCallback/Goat.java
Sending        impl/src/main/java/org/jboss/jsr299/tck/interceptors/tests/lifecycleCallback/Hen.java
Sending        impl/src/main/java/org/jboss/jsr299/tck/interceptors/tests/lifecycleCallback/LifecycleCallbackInterceptorTest.java
Transmitting file data ......
Committed revision 6166.

> org.jboss.jsr299.tck.interceptors.tests.lifecycleCallback.LifecycleCallbackInterceptorTest assumes that getTarget() will return a bean of the intercepted bean type
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CDITCK-146
>                 URL: https://jira.jboss.org/jira/browse/CDITCK-146
>             Project: CDI TCK
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Marius Bogoevici
>            Assignee: Marius Bogoevici
>             Fix For: 1.1.0.CR1
>
>
> In the test, it is assumed that getTarget() will return the bean classes of the intercepted beans (Cow, Hen, Goat). If the implementer chooses to use subclassing for interception, this is not true. getTarget() will still return the bean instance, but its actual type will be a subclass of the original bean class (generated for applying class enhancements).

-- 
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