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

KiwiReflection#findField should not make public Fields accessible #948

Closed
sleberknight opened this issue Apr 20, 2023 · 0 comments · Fixed by #953
Closed

KiwiReflection#findField should not make public Fields accessible #948

sleberknight opened this issue Apr 20, 2023 · 0 comments · Fixed by #953
Assignees
Labels
enhancement A request for change or improvement to an existing feature
Milestone

Comments

@sleberknight
Copy link
Member

Since public fields are already accessible by any code, we can omit the call to setAccessible(true) in KiwiReflection#findField when the Field is already public.

@sleberknight sleberknight added the enhancement A request for change or improvement to an existing feature label Apr 20, 2023
sleberknight added a commit that referenced this issue Apr 22, 2023
* Only call setAccessible(true) in findField if the Field is not public
  since public Fields are always accessible.

Closes #948
@sleberknight sleberknight added this to the 2.6.0 milestone Apr 22, 2023
@sleberknight sleberknight self-assigned this Apr 22, 2023
chrisrohr pushed a commit that referenced this issue Apr 24, 2023
#953)

* Only call setAccessible(true) in findField if the Field is not public
  since public Fields are always accessible.

Closes #948
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request for change or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant