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

Make PartitioningSerializer ignore static fields #199

Open
wants to merge 1 commit into
base: v8
Choose a base branch
from

Conversation

MattSturgeon
Copy link
Contributor

@MattSturgeon MattSturgeon commented Mar 17, 2023

Static fields aren't relevant to config, but apparently are sometimes added by JVM languages such as Kotlin.

Rather than PartitioningSerializer throwing a RuntimeException when an invalid static field is found, lets ignore all static fields and simply warn about their presence.

I only put this together quickly and haven't tested it as I'm somewhat unfamiliar with kotlin.

Hopefully fixes #137

Static fields aren't relevant to config, but are sometimes added by JVM languages such as Kotlin.

Fixes shedaniel#137
@MattSturgeon
Copy link
Contributor Author

May be able to use Field.isSynthetic() instead

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

Successfully merging this pull request may close these issues.

AutoConfig's PartitioningSerializer is incompatible with Kotlin classes with companion objects
1 participant