Currently TransformedList does not redefine iterator()
method and as result returns iterator for original,
not transformed objects. The same problem probably
exists for other Transformed* collections.

Shouldn't this class return TransformedListIterator
instead with following change:

@@ -115,6 +116,10 @@
 
     public ListIterator listIterator(int i) {
         return new
TransformedListIterator(getList().listIterator(i));
+    }
+
+    public Iterator iterator() {
+        return listIterator();
     }
 
     public Object set(int index, Object object) {

Regards,
Andriy


                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to