All pastes #170324 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-09-14 15:00 UTC
rendered paste body
Index: .
===================================================================
--- .	(revision 3502)
+++ .	(working copy)
@@ -270,11 +270,11 @@
     } 
 
     public Iterator4 ids(){
-        return new Iterator4Impl(i_classes._first) {
-        	public Object current() {
-        		return new Integer(((YapClass)super.current()).getID());
-        	}
-        };
+    	Collection4 ids = new Collection4();
+    	Iterator4 iter = new Iterator4Impl(i_classes._first);
+    	while (iter.moveNext())
+    		ids.add(new Integer(((YapClass) iter.current()).getID()));
+    	return ids.iterator();
     } 
 
     public int ownLength() {