Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Rename refactoring incomplete in 2.1 compared to 2.0.x
Rename refactoring incomplete in 2.1 compared to 2.0.x [message #7384] Mon, 28 April 2003 10:27 Go to next message
Eclipse UserFriend
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
Re: Rename refactoring incomplete in 2.1 compared to 2.0.x [message #8245 is a reply to message #7384] Tue, 29 April 2003 04:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com

please enter a bug report and we will investigate

thx
a.
--
eclipse.org
Re: Rename refactoring incomplete in 2.1 compared to 2.0.x [message #10074 is a reply to message #8245] Wed, 30 April 2003 17:21 Go to previous message
Eclipse UserFriend
Done. See: http://bugs.eclipse.org/bugs/show_bug.cgi?id=37115. I'll try
to watch the report. Please notify me if you need more information. I
would be more than happy to create a small test project so someone could
just try to rename a class and watch a build fail.

Thanks,
Craig
Previous Topic:JavaDoc for Platform plugins
Next Topic:Can't see source using remote debugger
Goto Forum:
  


Current Time: Sun Jul 13 08:05:00 EDT 2025

Powered by FUDForum. Page generated in 0.03403 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top