You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by GitBox <gi...@apache.org> on 2018/10/25 14:55:45 UTC

[GitHub] ebreijo closed pull request #24: MYFACES-4260: Context map from CDI ViewScope is not being cleared at …

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:
users@infra.apache.org


With regards,
Apache Git Services