Skip to content

Java: Deprecate condition node and block - #23359

Draft
aschackmull wants to merge 1 commit into
mainfrom
aschackmull/java-condition-guards
Draft

aschackmull wants to merge 1 commit into
mainfrom
aschackmull/java-condition-guards

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

Summary

  • Replace Java QL uses of ConditionNode and ConditionBlock with Guards APIs, and deprecate both classes.
  • Preserve branch-sensitive behavior in lock, type-flow, and TOCTOU checks, including short-circuit conditions.
  • Use guard reasoning for indirect conditions; the unreachable-loop-exit query can now identify guards stored in boolean variables.

Validation

  • Ran 30 targeted Java QL tests.
  • Added and reran focused TOCTOU short-circuit and indirect-loop-guard regression tests.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant