https://issues.apache.org/bugzilla/show_bug.cgi?id=46905





--- Comment #36 from Andreas L. Delmelle <adelme...@apache.org>  2009-07-07 
06:42:53 PST ---
(In reply to comment #35)
> <snip/>
> > Whether it's an IllegalStateException or an UnsupportedOperationException is
> > really all the same to me. Both are unchecked runtime exceptions. Just found
> > the latter more appropriate...
> 
> That's two different things. remove() is semantically correct on an Iterator;
> the fact that some iterators don't support it really is an implementation
> limitation, and UnsupportedOperationException is applicable here. 

I don't see the difference. Seems to be in your head... :-)

> 
> The 'declaration' only applies at compilation time, and is used to perform 
> type
> checking. At runtime there is no space allocated whatsoever. 

OK, good to know. I'll go for the declaration inside the loop, with the final
modifier.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to