Rename refactoring incomplete in 2.1 compared to 2.0.x [message #7384] |
Mon, 28 April 2003 10:27  |
Eclipse User |
|
|
|
Greetings everyone,
I've started using Release 2.1 for my latest Java project. My project
layout includes separate source folders for production and test code, though
the pacakge structure is the same in both. Here is an example.
project
src
prod
test
In Eclipse, this structure looks like the following.
proejct
src/prod
package
file
src/test
package
file
In 2.0.x, when I would refactor a production class, changes would also be
reflected in the unit tests. Refactoring no longer works this way for me in
2.1. For example, I just changed the name of a production class. As
expected, the class name, constructor name and file name were all changed.
However, references to this class in its unit test were not updated. I
rolled back the refactoring to try again, this time viewing the preview to
determine its contents. The preview lacked any changes to be applied to the
unit test.
While this refactoring that I'm doing is very small and can easily be done
by hand, larger refactorings where there are many references to update are
now much harder to do in 2.1 than they were in 2.0.x. Has anyone else
noticed this behavior?
Thanks,
Craig
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03403 seconds