This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Description
(moved from FasterXML/jackson-databind#517 reported by @chisui)
In 2.4.1.3 this works
new ObjectMapper().writeValueAsString(new Iterable<Integer>() {
@Override
public Iterator<Integer> iterator() {
return ImmutableList.of(1, 2, 3).iterator();
}
});
but this doesn't.
new ObjectMapper().writeValueAsString(Iterables.limit(Iterables.cycle(1,2,3), 3));