Skip to content

Conversation

@pcanal
Copy link
Member

@pcanal pcanal commented Mar 13, 2025

This fixes #17992

Technically the fix is in commit 3812e5e

However analysis of the surrounding code showed that

  • one of the code path was missing a call to PostLoadCheck (74a7abb)
  • the code could be simplified a tad bit.

pcanal added 5 commits March 13, 2025 20:19
At this point, if `cl` was found it was from a simple `FindObject` on the list class
which guarantees that the name is already normalized
If a library was loaded, the alias for a class were also loaded and a non normalized name might lead to a match.
If we skip this check, then the next step will normalized the name and check for typedef inside the name (if
it is a template instance name) and if the name are not found as is, it may lead to loading the header file.

ie. this fixes root-project#17992 and cms-sw/cmssw#47470
@pcanal pcanal added this to the 6.36.00 milestone Mar 13, 2025
@pcanal pcanal requested a review from vepadulano March 13, 2025 20:28
@pcanal pcanal self-assigned this Mar 13, 2025
@pcanal pcanal requested a review from dpiparo as a code owner March 13, 2025 20:28
@github-actions
Copy link

Test Results

    20 files      20 suites   5d 9h 38m 34s ⏱️
 2 729 tests  2 729 ✅ 0 💤 0 ❌
52 696 runs  52 696 ✅ 0 💤 0 ❌

Results for commit c5ea439.

Copy link
Member

@dpiparo dpiparo left a comment

Choose a reason for hiding this comment

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

Thanks Philippe for this important fix. LGTM.

@pcanal pcanal merged commit 760ff54 into root-project:master Mar 22, 2025
22 of 23 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.

Spurrious auto parsing when looking up a TClass

2 participants