You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by so...@apache.org on 2017/12/26 06:10:49 UTC
wicket git commit: [WICKET-6512] feedbackMessages, style, pageId,
sequence and temporarySessionAttributes are not being dropped while
session replacement
Repository: wicket
Updated Branches:
refs/heads/WICKET-6512-replaceSession [created] 05a8c7e57
[WICKET-6512] feedbackMessages, style, pageId, sequence and temporarySessionAttributes are not being dropped while session replacement
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/05a8c7e5
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/05a8c7e5
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/05a8c7e5
Branch: refs/heads/WICKET-6512-replaceSession
Commit: 05a8c7e57d6a2822d09fa1806955707c4cca368e
Parents: 0dc04e4
Author: Maxim Solodovnik <so...@gmail.com>
Authored: Tue Dec 26 13:10:33 2017 +0700
Committer: Maxim Solodovnik <so...@gmail.com>
Committed: Tue Dec 26 13:10:33 2017 +0700
----------------------------------------------------------------------
wicket-core/src/main/java/org/apache/wicket/Session.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/05a8c7e5/wicket-core/src/main/java/org/apache/wicket/Session.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/Session.java b/wicket-core/src/main/java/org/apache/wicket/Session.java
index e7f9c14..2c5616b 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Session.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Session.java
@@ -497,11 +497,6 @@ public abstract class Session implements IClusterable, IEventSink
clientInfo = null;
dirty = false;
metaData = null;
- feedbackMessages.clear();
- setStyle(null);
- pageId.set(0);
- sequence.set(0);
- temporarySessionAttributes = null;
}
}
@@ -515,6 +510,11 @@ public abstract class Session implements IClusterable, IEventSink
invalidate();
}
destroy();
+ feedbackMessages.clear();
+ setStyle(null);
+ pageId.set(0);
+ sequence.set(0);
+ temporarySessionAttributes = null;
}
/**