https://issues.apache.org/bugzilla/show_bug.cgi?id=46905
--- Comment #37 from Andreas L. Delmelle <[email protected]> 2009-07-07 08:28:19 PST --- (In reply to comment #36) > > <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... :-) Thought about it some more, and the above argument is moot. An UnsupportedOperationException does not necessarily mean that it is a limitation, in the sense that the implementation is not complete. For some iterators, for example one over a list returned by Collections.unmodifiableList(), it is an error if it implements the remove() operation. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
