You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove() method on **ResourceIterator* that was constructed from calling columnAs() throws wrong Exception - IllegalStateException
Has to be UnsupportedOperationException
and then delegating remove() call to emptyIterator... IllegalStateException is legit exception for empty Iterator (as of java.util.Collections.java), however my columnAs() does return results and shouldn't be reconstructed into empty rItr...
The text was updated successfully, but these errors were encountered:
Hi,
remove()
method on **ResourceIterator* that was constructed from callingcolumnAs()
throws wrong Exception - IllegalStateExceptionHas to be UnsupportedOperationException
My code example:
Same
remove()
operation if called onresult.remove()
throws correct UnsupportedOperationException.This error is due to you are reconstructing ResourceIterator into Collections.emptyIterator:
and then delegating
remove()
call to emptyIterator...IllegalStateException is legit exception for empty Iterator (as of java.util.Collections.java), however my
columnAs()
does return results and shouldn't be reconstructed into empty rItr...The text was updated successfully, but these errors were encountered: