In https://github.com/cms-sw/cmssw/pull/38870#discussion_r938814564 we missed keeping the old ClassVersion, which has since been readded in https://github.com/cms-sw/cmssw/pull/38992. It might be useful if this bug was tested for: either at compile time, statically, or via some runtime test.