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

Stop shadowing field #616

Merged
merged 1 commit into from
May 21, 2024
Merged

Stop shadowing field #616

merged 1 commit into from
May 21, 2024

Conversation

basil
Copy link
Member

@basil basil commented May 21, 2024

This field exists two levels up the class hierarchy, so shadowing it here is pointless. It is also actively harmful, as it causes the injector to inject it in the lowest level of the class hierarchy but not in the grandparent class, causing references to it in the grandparent class (of which there currently are none, but will be in a future change I'm working on) to fail with a NullPointerException.

Testing done

CI build

@basil basil added the bug label May 21, 2024
@basil basil merged commit 47b9070 into jenkinsci:master May 21, 2024
6 checks passed
@basil basil deleted the shadow branch May 21, 2024 20:37
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