Jump to content
Sign in to follow this  
ori

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×