Ticket #5125: Avoid infinite recursion for recursive class definitions
Merge pull request #192 from simartin/ticket_5125

Ticket #5125: Avoid infinite recursion for recursive class definitions