Skip to content

Conversation

@guitargeek
Copy link
Contributor

Backport of #20496

@guitargeek guitargeek self-assigned this Nov 24, 2025
@guitargeek guitargeek changed the title [CPyCppyy] Correcly handle static method calls via derived instance [v638][CPyCppyy] Correcly handle static method calls via derived instance Nov 24, 2025
@guitargeek guitargeek added the bug label Nov 24, 2025
@guitargeek guitargeek changed the title [v638][CPyCppyy] Correcly handle static method calls via derived instance [v638][CPyCppyy] Correctly handle static method calls via derived instance Nov 24, 2025
The mechanism to strip away the "self" argument from the call to a
static method checks the type of "self", matching the exact type.

However, it should also remove the "self" if it is an instance of a
derived type, because in C++ it is also possible to call static methods
via instances of derived types.

A unit test was also added.

Closes root-project#20463.
@github-actions
Copy link

Test Results

    21 files      21 suites   3d 16h 56m 22s ⏱️
 3 708 tests  3 708 ✅ 0 💤 0 ❌
75 991 runs  75 991 ✅ 0 💤 0 ❌

Results for commit a1c5bd2.

@dpiparo dpiparo merged commit 5bbd061 into root-project:v6-38-00-patches Nov 25, 2025
23 of 25 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.

2 participants