Author: knopp
Date: Fri Jan 16 12:01:28 2009
New Revision: 735112

URL: http://svn.apache.org/viewvc?rev=735112&view=rev
Log:
WICKET-2022

Modified:
    
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/SerializedPagesCache.java

Modified: 
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/SerializedPagesCache.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/SerializedPagesCache.java?rev=735112&r1=735111&r2=735112&view=diff
==============================================================================
--- 
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/SerializedPagesCache.java
 (original)
+++ 
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/SerializedPagesCache.java
 Fri Jan 16 12:01:28 2009
@@ -166,7 +166,7 @@
                // this is used for lookup on pagemap serialization. We don't 
have the
                // session id at that point, because it can happen outside the 
request
                // thread. We only have the page instance and we need to use it 
as a key
-               final transient WeakReference<Page> page;
+               final transient WeakReference<Object> page;
 
                // list of serialized pages
                final List<SerializedPage> pages;
@@ -187,14 +187,14 @@
                        versionNumber = page.getCurrentVersionNumber();
                        ajaxVersionNumber = page.getAjaxVersionNumber();
                        this.pages = new ArrayList<SerializedPage>(pages);
-                       this.page = new WeakReference<Page>(page);
+                       this.page = new WeakReference<Object>(page);
                }
 
                SerializedPageWithSession(String sessionId, int pageId, String 
pageMapName,
                        int versionNumber, int ajaxVersionNumber, 
List<SerializedPage> pages)
                {
                        this.sessionId = sessionId;
-                       page = new WeakReference<Page>(NO_PAGE);
+                       page = new WeakReference<Object>(NO_PAGE);
                        this.pageId = pageId;
                        this.pageMapName = pageMapName;
                        this.versionNumber = versionNumber;
@@ -202,7 +202,7 @@
                        this.pages = pages;
                }
 
-               static final Page NO_PAGE = new Page()
+               static final Object NO_PAGE = new Object()
                {
                };
 


Reply via email to