I am working with a java library in scala, and I need to implement an Interface, which, among other things requires that I implement that I implement Java's Iterable
interface.
When I try to implement it with or without JavaConversions
it tells me that the method I am overriding (iterator(): java.util.Iterator
) is of the wrong type, even though the method is of the type java.util.Iterator
.
As a side note, could this be because the interface requires that I return an iterator of unspecified type?