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

ASF GitHub Bot commented on MYFACES-4260:
-----------------------------------------

ebreijo closed pull request #24: MYFACES-4260: Context map from CDI ViewScope 
is not being cleared at …
URL: https://github.com/apache/myfaces/pull/24
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/impl/src/main/java/org/apache/myfaces/cdi/view/ViewScopeContextImpl.java 
b/impl/src/main/java/org/apache/myfaces/cdi/view/ViewScopeContextImpl.java
index 6384e43a2..122aeb1ca 100644
--- a/impl/src/main/java/org/apache/myfaces/cdi/view/ViewScopeContextImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/cdi/view/ViewScopeContextImpl.java
@@ -246,6 +246,8 @@ public static void 
destroyAllActive(ViewScopeContextualStorage storage, FacesCon
                 mbDestroyer.destroy(key.getName(), 
entry.getValue().getContextualInstance());
             }
         }
+
+        contextMap.clear();
         
         storage.deactivate();
     }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Context map from CDI ViewScope is not being cleared at destroy time
> -------------------------------------------------------------------
>
>                 Key: MYFACES-4260
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4260
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-344
>    Affects Versions: 2.2.12, 2.3.2
>            Reporter: Eduardo Breijo
>            Assignee: Eduardo Breijo
>            Priority: Minor
>
> The context map that stores Contextual Instances in a CDI Context is not 
> being cleared when destroying a CDI ViewScope bean.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to