[Bug] [VW 7.5] Moving a class to a different namespace doesn't change references

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug] [VW 7.5] Moving a class to a different namespace doesn't change references

Stew MacLean

Hi,

 

When moving a class to a different name space, I’ve found that references to that class are not changed to point to the class in the target namespace.

 

To replicate, create a class in name space X. Add a method that references the class, including the name space prefix.

 

Then select the move to name space menu option and move the class to another name space.

 

Observe that the reference to the class in the method still refers to the old namespace and now has no binding.

 

Cheers,

 

Stewart

Reply | Threaded
Open this post in threaded view
|

Re: [Bug] [VW 7.5] Moving a class to a different namespace doesn't change references

Travis Griggs-3
On May 18, 2007, at 14:58, Stewart MacLean wrote:

Hi,

 

When moving a class to a different name space, I’ve found that references to that class are not changed to point to the class in the target namespace.

 

To replicate, create a class in name space X. Add a method that references the class, including the name space prefix.

 

Then select the move to name space menu option and move the class to another name space.

 

Observe that the reference to the class in the method still refers to the old namespace and now has no binding.

Yup. Move to Namespace is not a real refactoring.

I'm currently working on it right now. This very minute. It's kind of a weird karma cycle thing. I think I complained about this with 5i4. I may have been the earliest vocal complainer about it. Now I work for Cincom, and who of all people gets tasked to fix it?

Morale of the story, be careful about what you complain about. :)

--
Travis Griggs
Objologist
"There are a thousand hacking at the branches of evil to one who is striking at the root" - Henry David Thoreau