Skip to content
This repository was archived by the owner on Jan 2, 2022. It is now read-only.

Fixed bug - false detection of circular reference#21

Open
parvanov wants to merge 2 commits intoRitwikSaikia:masterfrom
parvanov:master
Open

Fixed bug - false detection of circular reference#21
parvanov wants to merge 2 commits intoRitwikSaikia:masterfrom
parvanov:master

Conversation

@parvanov
Copy link
Copy Markdown
Contributor

There was a bug in detection of circular reference.

It was adding the class of each field as it was entering it, but it wasn't removing it once it exists the field.
As a result, any class with 2 or more fields of the same class was wrongly giving an error.

Added
visited.remove(clazz);
to fix it.

Note the pull request has 2 commits even though one is already merged.
The fix consists only of commit parvanov@e89c8b7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant