@@ -748,7 +748,7 @@ ROOT::RProxiedCollectionField::RProxiedCollectionField(std::string_view fieldNam
748748 fNWritten(0 )
749749{
750750 if (!classp->GetCollectionProxy ())
751- throw RException (R__FAIL (std::string (GetTypeName ()) + " has no associated collection proxy" ));
751+ throw RException (R__FAIL (std::string (classp-> GetName ()) + " has no associated collection proxy" ));
752752 if (classp->Property () & kIsDefinedInStd ) {
753753 static const std::vector<std::string> supportedStdTypes = {
754754 " std::set<" , " std::unordered_set<" , " std::multiset<" , " std::unordered_multiset<" ,
@@ -764,6 +764,10 @@ ROOT::RProxiedCollectionField::RProxiedCollectionField(std::string_view fieldNam
764764 throw RException (R__FAIL (std::string (GetTypeName ()) + " is not supported" ));
765765 }
766766
767+ std::string renormalizedAlias;
768+ if (Internal::NeedsMetaNameAsAlias (classp->GetName (), renormalizedAlias))
769+ fTypeAlias = renormalizedAlias;
770+
767771 fProxy .reset (classp->GetCollectionProxy ()->Generate ());
768772 fProperties = fProxy ->GetProperties ();
769773 fCollectionType = fProxy ->GetCollectionType ();
@@ -801,7 +805,7 @@ ROOT::RProxiedCollectionField::RProxiedCollectionField(std::string_view fieldNam
801805 case EDataType::kFloat_t : itemField = std::make_unique<RField<Float_t>>(" _0" ); break ;
802806 case EDataType::kDouble_t : itemField = std::make_unique<RField<Double_t>>(" _0" ); break ;
803807 case EDataType::kBool_t : itemField = std::make_unique<RField<Bool_t>>(" _0" ); break ;
804- default : throw RException (R__FAIL (" unsupported value type" ));
808+ default : throw RException (R__FAIL (" unsupported value type: " + std::to_string ( fProxy -> GetType ()) ));
805809 }
806810 }
807811
0 commit comments