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

ignore overridden setters and getters in JavaBeanSchema #33052

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

Conversation

tilgalas
Copy link
Contributor

@tilgalas tilgalas commented Nov 8, 2024

With recent change to ReflectUtils.getMethods which made it so that it now traverses the whole class hierarchy for search of methods to return to make it consistent with the behavior of the getFields method, the schema inference for Java Bean classes will fail (see the test) if that class overrides any of its getters or setters - this PR fixes that by making sure that we only consider the bottommost accessors when calculating the schema

@github-actions github-actions bot added the java label Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@tilgalas
Copy link
Contributor Author

tilgalas commented Nov 8, 2024

Run Java PreCommit

1 similar comment
@tilgalas
Copy link
Contributor Author

Run Java PreCommit

@claudevdm
Copy link
Contributor

Hey @tilgalas does this PR have any next steps?

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

Successfully merging this pull request may close these issues.

2 participants