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

Bean import is using reflection for visible fields #10262

Open
auke- opened this issue Dec 14, 2023 · 0 comments
Open

Bean import is using reflection for visible fields #10262

auke- opened this issue Dec 14, 2023 · 0 comments

Comments

@auke-
Copy link
Contributor

auke- commented Dec 14, 2023

Expected Behavior

When using the Bean Import functionality the generated bean definitions use reflection for fields which are visible. This is especially the case for package protected fields when the class annotated with @Import is in the same package as the bean and thus the generated bean definition is in the same package.

It looks like the issue is caused by the absence of the isPackagePrivate and isPrivate methods in AbstractBeanDefinitionBuilder.java, see #10236 for a possible fix.

Actual Behaviour

No response

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

4.2.1

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 a pull request may close this issue.

1 participant