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

Public static fields are included in serialized output #84

Closed
MikeDombo opened this issue May 12, 2021 · 2 comments
Closed

Public static fields are included in serialized output #84

MikeDombo opened this issue May 12, 2021 · 2 comments
Milestone

Comments

@MikeDombo
Copy link
Contributor

Public static fields are included in the serialized output, is this the proper behavior? I know that I can @JsonIgnore them, but this is not the same as jackson-databind so I'm wondering if this is actually a bug.

@cowtowncoder
Copy link
Member

Yes, that would be a bug. Static fields should NOT be included.

... my only fear is that someone, somewhere, might be counting on that as "feature". :-(

If it is easy enough to do, adding a new Feature to allow static fields (but defaulting, for 2.13, for "don't include") might make sense.

@cowtowncoder cowtowncoder added this to the 2.13.0 milestone May 14, 2021
@MikeDombo
Copy link
Contributor Author

Resolved by #86

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