The Unified and Autonomous Development Platform
Upgrade to Wicket 6.12.0
robin shine0c874a05d428
diff --git a/commons.wicket/src/main/java/org/apache/wicket/page/PageStoreManager.java b/commons.wicket/src/main/java/org/apache/wicket/page/PageStoreManager.javaindex e7987bcf2b..a829ca9eee 100644--- a/commons.wicket/src/main/java/org/apache/wicket/page/PageStoreManager.java+++ b/commons.wicket/src/main/java/org/apache/wicket/page/PageStoreManager.java@@ -328,6 +328,13 @@ public class PageStoreManager extends AbstractPageManagerstore.unbind(sessionId);}}++ @Override+ public boolean equals(Object o)+ {+ // see https://issues.apache.org/jira/browse/WICKET-5390+ return false;+ }}/**@@ -386,18 +393,13 @@ public class PageStoreManager extends AbstractPageManager*/private SessionEntry getSessionEntry(boolean create){- SessionEntry entry = (SessionEntry)getSessionAttribute(getAttributeName());+ String attributeName = getAttributeName();+ SessionEntry entry = (SessionEntry)getSessionAttribute(attributeName);if (entry == null && create){bind();entry = new SessionEntry(applicationName, getSessionId());- }- if (entry != null)- {- synchronized (entry)- {- setSessionAttribute(getAttributeName(), entry);- }+ setSessionAttribute(attributeName, entry);}return entry;}