mtedone/podam — pull request #33 by daivanov (2013-12-31 13:39:12+00:00)
Title: Fixing stack overflow for POJOs with circular dependencies.

Existing code handles dependency loops of type A-A-..., and Issue#7 reports problem with dependency types of A-B-A-B-... However, dependency loop can be arbitrary long, for example, A-B-C-D-E-A-...
There are two approaches to handle this:
a) count dependency depth and cut it at some level.
b) propagate a root POJO further to detect loop comparing a currently produced POJO with the root POJO.
Podam was using first approach historically, so I extended it to stop, if depth goes above 10. Now as depth is defined by DataProviderStrategy it could be easily changed, if needed.