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

Keep the declared mapping information when using attribute overrides #11135

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Dec 22, 2023

When using AttributeOverride to override mapping information inherited from a parent class (a mapped superclass), make sure to keep information about where the field was originally declared.

This is important for private fields: Without the correct declared information, it will lead to errors when cached mapping information is loaded, reflection wakes up and looks for the private field in the wrong class.

@mpdude mpdude force-pushed the override-keep-declaring-class branch from e4fb790 to 24faa9e Compare December 22, 2023 17:06
@mpdude mpdude marked this pull request as ready for review December 22, 2023 17:07
@mpdude mpdude merged commit a8632ac into 2.17.x Jan 12, 2024
58 checks passed
@mpdude mpdude deleted the override-keep-declaring-class branch January 12, 2024 23:06
@mpdude mpdude added this to the 2.17.3 milestone Jan 17, 2024
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.

None yet

2 participants