[weld-issues] [JBoss JIRA] Commented: (CDITCK-120) Seems a bug in DependentContextTest

Gurkan Erdogdu (JIRA) jira-events at lists.jboss.org
Tue Feb 23 14:32:10 EST 2010


    [ https://jira.jboss.org/jira/browse/CDITCK-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12516144#action_12516144 ] 

Gurkan Erdogdu commented on CDITCK-120:
---------------------------------------

Maybe this is not defined in the specification explicitly but if you look specification as a whole it may reflected. For example, for context spec. says that 

"The Context interface is called by the container and may be called by portable extensions. It should not be called directly
by the application." 

What does the result if user calls context methods directly? This is undefined and not explained in specification. Every implementation hooks something on context method calls. If user directly calls those method these hooks may not be called.

I think that this is similar to Bean#create methods.And section 6.2 says that

"The context object is responsible for creating and destroying contextual instances by calling operations of the Contextual
interface."

> Seems a bug in DependentContextTest
> -----------------------------------
>
>                 Key: CDITCK-120
>                 URL: https://jira.jboss.org/jira/browse/CDITCK-120
>             Project: CDI TCK
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Gurkan Erdogdu
>            Assignee: Pete Muir
>
> org.jboss.jsr299.tck.tests.context.dependent.DependentContextTest belows test methods directly use Bean#create method to create actual bean instances. But this method must not be used directly, instead of BeanManager#getReference must be used.
> Therefore tests are failed.
> Methods
> -----------------
> testDependentScopedDecoratorsAreDependentObjectsOfBean
> testDependentScopedInterceptorsAreDependentObjectsOfBean

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