Author: saces
Date: 2007-07-18 21:11:26 +0000 (Wed, 18 Jul 2007)
New Revision: 14178

Modified:
   trunk/freenet/src/freenet/support/LRUQueue.java
Log:
may fix the ArrayStoreException

Modified: trunk/freenet/src/freenet/support/LRUQueue.java
===================================================================
--- trunk/freenet/src/freenet/support/LRUQueue.java     2007-07-18 18:13:23 UTC 
(rev 14177)
+++ trunk/freenet/src/freenet/support/LRUQueue.java     2007-07-18 21:11:26 UTC 
(rev 14178)
@@ -118,7 +118,7 @@
                Object[] array = new Object[list.size()];
                int x = 0;
                for(Enumeration e = 
list.reverseElements();e.hasMoreElements();) {
-                       array[x++] = e.nextElement();
+                       array[x++] = ((QItem)e.nextElement()).obj;
                }
                return array;
        }
@@ -133,7 +133,7 @@
                        throw new 
IllegalStateException("array.length="+array.length+" but list.size="+listSize);
                int x = 0;
                for(Enumeration e = 
list.reverseElements();e.hasMoreElements();) {
-                       array[x++] = e.nextElement();
+                       array[x++] = ((QItem)e.nextElement()).obj;
                }
                return array;
        }


Reply via email to