GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — C#/Java: Modelgenerator. Lift models to unbound generic implementations. by michaelnebel · Pull Request #22192 · github/codeql

Conversation

@michaelnebel

@michaelnebel michaelnebel commented Jul 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

In this PR we update the model generator to cater for lifting models to unbound declarations.

If the PR is review'ed on a commit basis, the effect for C# is evident.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added C# Java labels Jul 15, 2026
michaelnebel added 3 commits July 16, 2026 11:39
@michaelnebel
C#: Add some generic override modelgenerator test cases.
62408d8
@michaelnebel
C#: Lift models to unbound declarations.
541cde9
@michaelnebel
C#: Update model generator expected test output.
3fca673
@michaelnebel
michaelnebel force-pushed the shared/modelgengeneric branch from 1756034 to 16766cc Compare July 16, 2026 10:26
@michaelnebel michaelnebel changed the title C#/Java: Lift to unbound generic implementations. C#/Java: Modelgenerator. Lift models to unbound generic implementations. Jul 16, 2026
@michaelnebel michaelnebel mentioned this pull request Jul 16, 2026
Update Apache Avro MaDs - Now including summaries #22015
Open
@michaelnebel
Java: Lift models to source (unbound) declarations.
0b365b3
@michaelnebel
michaelnebel force-pushed the shared/modelgengeneric branch from 16766cc to 392d02d Compare July 16, 2026 12:49
@michaelnebel
Java: Add java generics test cases.
f184d28
@michaelnebel
michaelnebel force-pushed the shared/modelgengeneric branch from 392d02d to f184d28 Compare July 17, 2026 07:23
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Jul 17, 2026
@michaelnebel
michaelnebel marked this pull request as ready for review July 17, 2026 08:51
@michaelnebel
michaelnebel requested review from a team as code owners July 17, 2026 08:51
Copilot AI review requested due to automatic review settings July 17, 2026 08:51
Copilot started reviewing on behalf of michaelnebel July 17, 2026 08:51
View session
Copilot AI reviewed Jul 17, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Updates C# and Java model generators to lift override models to unbound generic declarations.

Changes:

  • Canonicalizes overridden generic callables.
  • Adds direct and nested generic inheritance tests.
Show a summary per file
File Description
java/ql/test/utils/modelgenerator/dataflow/p/Generics.java Adds Java generic override test cases.
java/ql/src/utils/modelgenerator/internal/CaptureModels.qll Resolves overrides to source declarations.
csharp/ql/test/utils/modelgenerator/dataflow/Summaries.cs Adds C# generic virtual override tests.
csharp/ql/src/utils/modelgenerator/internal/CaptureModels.qll Resolves overridden callables to unbound declarations.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Medium

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
aschackmull
aschackmull approved these changes Jul 27, 2026
View reviewed changes

@aschackmull aschackmull left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ortegaambrose1964-gif reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@michaelnebel
michaelnebel merged commit 4e31516 into github:main Aug 11, 2026
45 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@michaelnebel
michaelnebel deleted the shared/modelgengeneric branch August 11, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@aschackmull aschackmull aschackmull approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

C# Java no-change-note-required This PR does not need a change note

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@michaelnebel @aschackmull
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.