Jump to content

unsuccessful factory override


Recommended Posts

Hi,

I want to share with you a factory override issue I'm currently dealing with.

I have a class (we can call it class_a), that I'm overriding, with class_a_ovrd, which extends class_a.

for that, I'm using the following command, the build function of the test, before the env is being created:

set_type_override_by_type(class_a::get_type(),class_a_ovrd::get_type(),"*"); 

after that, I can see that the override is being performed only for the build function of class_a_ovrd,  i.e. only the build function of class_a_ovrd replaces  the build function of class_a, 

but all the other functions still being taken from the original class, class_a.

can you say how such thing can happen?

 

Thanks,

Ori

Link to post
Share on other sites
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...