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

Reduce the use of reflection in some rare circumstances #290

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

basil
Copy link
Member

@basil basil commented Aug 2, 2024

Very slightly mitigates the impact of JENKINS-60891 in two rather rare circumstances: when the environment is not changing, and when an existing variable is being updated. This is far from a solution to JENKINS-60891, but at least it's better than nothing. A full solution would require core changes and adaptations in several other plugins, which would be a much larger effort. Meanwhile, this can't hurt and is better than the status quo.

Testing done

Manually tested that overriding the PATH parameter failed before this PR and succeeded after this PR on Java 17.

@basil basil added the bug label Aug 2, 2024
@basil basil requested a review from a team as a code owner August 2, 2024 01:12
@basil basil requested a review from NotMyFault August 2, 2024 01:26
@basil basil merged commit 009aa10 into jenkinsci:master Aug 2, 2024
16 checks passed
@basil basil deleted the reflection2 branch August 2, 2024 18:03
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.

1 participant