Skip to content

Java: generalise javax.persistence models to also recognise jakarta.persistence. #19187

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

Merged
merged 7 commits into from
Apr 2, 2025

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Apr 1, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings April 1, 2025 15:21
@smowton smowton requested a review from a team as a code owner April 1, 2025 15:21
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (3)
  • java/ql/lib/semmle/code/java/deadcode/DeadField.qll: Language not supported
  • java/ql/lib/semmle/code/java/deadcode/EntryPoints.qll: Language not supported
  • java/ql/lib/semmle/code/java/frameworks/javaee/Persistence.qll: Language not supported

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@github-actions github-actions bot added the Java label Apr 1, 2025
jcogs33
jcogs33 previously approved these changes Apr 1, 2025
Copy link
Contributor

@jcogs33 jcogs33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple qldocs need to be updated. LGTM otherwise.

Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com>
Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one small caveat: Did you do any local perf/join-order checking? This sort of change might shift some join-orders.

@smowton
Copy link
Contributor Author

smowton commented Apr 2, 2025

I hadn't; I'll do a DCA now to cross-check. I've made a special-purpose suite consisting of some repos that use javax.persistence and some that use jakarta.persistence, since none in the default DCA suite do, which could hide a problematic join behind a zero result in a sentinel predicate.

@smowton smowton merged commit e865d07 into github:main Apr 2, 2025
16 checks passed
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.

3 participants