Skip to content

Commit

Permalink
Merge pull request #5517 from GraphGeeks/2.3-fix-4984_incorrect_excep…
Browse files Browse the repository at this point in the history
…tion_on_column_as

Fix #4984 - UnsupportedOperationException on ResourceIterator::remove()
  • Loading branch information
systay committed Oct 8, 2015
2 parents 9a9389e + 561be62 commit ad26fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class PipeExecutionResult(val result: ResultIterator,
}

private trait WrappingResourceIterator[T] extends ResourceIterator[T] {
def remove() { Collections.emptyIterator[T]().remove() }
def remove() { throw new UnsupportedOperationException("remove") }
def close() { self.close() }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class CompiledExecutionResult(taskCloser: TaskCloser,
new EntityNotFoundException("No column named '" + column + "' was found. Found: " + data.keys.mkString("(\"", "\", \"", "\")"))

private trait WrappingResourceIterator[T] extends ResourceIterator[T] {
def remove() { Collections.emptyIterator[T]().remove() }
def remove() { throw new UnsupportedOperationException("remove") }
def close() { self.close() }
}

Expand Down

0 comments on commit ad26fd2

Please sign in to comment.