-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack overflow when generating Protobuf schema on class containing cyclic type definition #140
Comments
Quick question: are you registering Java 8 date/time module ( |
It works better now. Thanks ! It would be nice to have loop detection and a log notifying which class or field is the root of the loop |
@acommuni I agree, loop should be detected and gracefully handled. If I have time, I hope to figure out a simple reproduction, using simple POJO (to avoid Java 8 dependency for 2.x) |
OffsetDatetime
field
Interesting. Direct self-reference is fine, and did not cause issue. It's only loop through at least one class. At least I can reproduce it now, initially had some issues. |
OffsetDatetime
field
I'm trying to generate schema from class on the following class :
I generate the class with this :
The stack loops on OffsetDatetime resolution
The text was updated successfully, but these errors were encountered: