Skip to content
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

Unable to handle JsonNode #24

Closed
alfisti166 opened this issue Mar 7, 2023 · 4 comments
Closed

Unable to handle JsonNode #24

alfisti166 opened this issue Mar 7, 2023 · 4 comments

Comments

@alfisti166
Copy link

alfisti166 commented Mar 7, 2023

Plugin seems not to handle classes that includes JsonNode field. Stack overflow occurs.

public class Asd {
    private JsonNode asd;
}

Is it possible just to generate empty brackets?

@organics2016
Copy link
Owner

This is a bug. fix to next release

@organics2016
Copy link
Owner

idea64_iWBNwhsREa

This is my test case.

The result shows that although the value is not as expected, but it does not cause a stack overflow.
Did you stuff something weird in your Class?
eg:

public class Asd extends JsonNode {
    private JsonNode asd;
}

or

public class JsonNode {
    private Asd asd;
}

public class Asd {
    private JsonNode asd;
}

@alfisti166
Copy link
Author

alfisti166 commented Mar 18, 2023

Not really. Let me provide more details.
BTW. ObjectNode doesn't cause stack overflow, but generate pretty useless fields.

Screenshot from 2023-03-18 16-45-03
Screenshot from 2023-03-18 16-37-38
Screenshot from 2023-03-18 16-37-04

@organics2016
Copy link
Owner

Moderation may take up to two business days.
Fix version 1.2.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants