You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Rafael Benevides (JIRA)" <ji...@apache.org> on 2014/04/23 23:14:16 UTC

[jira] [Comment Edited] (DELTASPIKE-370) ContainerCtrlTckTest - fix testShutdownWithInactiveContexts()

    [ https://issues.apache.org/jira/browse/DELTASPIKE-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978910#comment-13978910 ] 

Rafael Benevides edited comment on DELTASPIKE-370 at 4/23/14 9:12 PM:
----------------------------------------------------------------------

Is there any restriction on updating Weld ? I've updated _<weld.version/>_ on parent pom.xml to *1.1.19.Final*, changed -cdiContainer.getContextControl().startContexts();- to +cdiContainer.getContextControl().stopContexts();+ and I ran  _mvn clean install -PWeld_ and _mvn clean install -Pexamples -PWeld_ .

It seems to work fine with Weld 1.1.19.Final.


was (Author: rafabene):
Is there any restriction on updating Weld ? I've updated <weld.version/> on parent pom.xml to 1.1.19.Final, changed `cdiContainer.getContextControl().startContexts();` to `cdiContainer.getContextControl().stopContexts();` and I ran  `mvn clean install -PWeld` and `mvn clean install -Pexamples -PWeld` .

It seems to work fine with Weld 1.1.19.Final.

> ContainerCtrlTckTest - fix testShutdownWithInactiveContexts()
> -------------------------------------------------------------
>
>                 Key: DELTASPIKE-370
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-370
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: CdiControl
>    Affects Versions: 0.3-incubating
>            Reporter: Martin Kouba
>            Assignee: Mark Struberg
>
> Line 175:
> cdiContainer.getContextControl().startContexts();
> should be:
> cdiContainer.getContextControl().stopContexts();
> Fixing this causes the testShutdownWithInactiveContexts() failure, due to https://issues.jboss.org/browse/WELD-1072 
> In fact testRestartContexts() should also fail but it doesn't by coincidence, the reasons:
> - WeldContainerControl.shutdown() does not stop contexts
> - Weld core does not invalidate other contexts than @ApplicationScoped during shutdown
> - Weld core uses some request scoped caching optimization
> WELD-1072 is going to be fixed in 1.1.13.Final and 2.0.1.Final.
> The test should be fixed. I'm going to address the other problem (WeldContainerControl.shutdown()) in a different issue.



--
This message was sent by Atlassian JIRA
(v6.2#6252)