In reply to verif_learner:
I think this part: string name = “my_component”, needs to be assigned for overriding the parent name value. May be this could be removed in future versions of UVM.
When you provide different name, than it gives error I assume~ Need checking by simulation.
Thanks