Skip to content

[RF,geom,TMVA] avoid shadowing parent class members - #23062

Draft
ferdymercury wants to merge 4 commits into
root-project:masterfrom
ferdymercury:repeated
Draft

[RF,geom,TMVA] avoid shadowing parent class members#23062
ferdymercury wants to merge 4 commits into
root-project:masterfrom
ferdymercury:repeated

Conversation

@ferdymercury

Copy link
Copy Markdown
Collaborator

Closes #8189

@ferdymercury
ferdymercury marked this pull request as ready for review August 10, 2026 13:13
@ferdymercury
ferdymercury requested a review from linev August 10, 2026 17:10
@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   5d 3h 56m 55s ⏱️
 3 854 tests  3 846 ✅ 0 💤   8 ❌
78 522 runs  78 419 ✅ 1 💤 102 ❌

For more details on these failures, see this check.

Results for commit 086b2b0.

Int_t *fNdivisions; // [fNrows] number of divisions for each row
Double_t *fStart; // [fNrows] starting points for each row
Int_t *fNdivs; // [fNrows] number of divisions for each row
Double_t *fRowStart; // [fNrows] starting points for each row

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This does not appear to be backward compatible in term of reading old file. Are we missing I/O customization rules? Can we add tests?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Original issue #8189 describes the problem.
Once duplicated name for class member introduced in the class - we have no easy way to make I/O conversion rule for it.
To resolve issue we need first to implement I/O conversion rules for such cases and only then modify mentioned classes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Also: to prevent new occurrences in the future, should we turn on this warning? https://stackoverflow.com/a/59047305/7471760

I have no idea about I/O conversion rules so I'll leave this PR as draft in case someone wants to take over ;)

@ferdymercury
ferdymercury marked this pull request as draft August 11, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicated class member names in ROOT classes

4 participants