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

jvm: fix incorrect check for root-only ClasspathEntryRequest implementations (Cherry pick of #15494) #15496

Merged
merged 1 commit into from
May 17, 2022

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented May 16, 2022

The conditional logic which checked for a root-only ClasspathEntryRequest implementation in a non-root position looked at a loop variable which could be unrelated to the compatible ClasspathEntryRequest implementation at issue.

Solution: Check the root-only status of the compatible ClasspathEntryRequest implementation and avoid checking the loop variable.

h/t to @stuhood for spotting the bug. pantsbuild/example-kotlin#1 (comment)

[ci skip-rust]

[ci skip-build-wheels]

…entations (pantsbuild#15494)

The conditional logic which checked for a root-only `ClasspathEntryRequest` implementation in a non-root position looked at a loop variable which could be unrelated to the compatible `ClasspathEntryRequest` implementation at issue. 

Solution: Check the root-only status of the compatible `ClasspathEntryRequest` implementation and avoid checking the loop variable.

h/t to @stuhood for spotting the bug. pantsbuild/example-kotlin#1 (comment)

[ci skip-rust]

[ci skip-build-wheels]
@tdyas tdyas added the category:bugfix Bug fixes for released features label May 16, 2022
@tdyas tdyas requested review from stuhood and Eric-Arellano May 16, 2022 21:56
@tdyas tdyas merged commit 18659e5 into pantsbuild:2.12.x May 17, 2022
@tdyas tdyas deleted the cp_jvm_fix_root_only_impl_check branch May 17, 2022 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants