Community
Participate
Working Groups
Not sure whether this is really a bug - it may well be intentional, but I thought I would report it anyway. Create a class called Test. Then go to the Debug icon, and select Debug. Set up the new class to debug and debug it. Then, obviously, the class's name will appear in the list of recently debugged classes. Then do a Refactor -> Rename and rename the Test class to Test2. All the code is change correctly but the old class name of Test still appears in the list. Trying to run this, as I thought it then might automatically switch over to Test2, throws a ClassNotFoundException. It may not be a bug (it may be intentional), but i thought it would be clever to update the debug settings as well. Otherwise, you have to go in there, and rename the class etc etc. Thanks Nic
This is intentional behavior. We originally considered trying to make launch configurations always respond to resource changes (e.g., a launch config for HelloWorld.java deletes itself when HelloWorld.java is deleted), but this turned out to impossible to do 100% of the time in the Java case, and even worse in the general case for an arbitrary debug model. The result is that once a launch configuration is created, there is no connection between it and the resource it launches (assuming it even launches a resource, which was part of the problem). In the Java case, if you rename or delete a resource, you must manually change or delete any associated launch configurations. As always, if you have any insight into this problem, or feel strongly that this should be addressed, please comment on this bug report or post to the newsgroup. For now, I'm marking this as WONTFIX.
Thats fine..its only a minor thing anyway but I thought I would point it out.. Thanks
There have been several requests/bug reports related to this (i.e. refactoring operations should also consider Java launch configurations). I am going to mark this bug as "later" since we might consider this an extension to refactoring. The refactoring support does not currently support extensions, but there is talk of such features in the future (post 2.1).
Marking as later.
*** Bug 33414 has been marked as a duplicate of this bug. ***
A workaround in 2.1 is to select "Update fully qualified name in non Java files" and use "*.launch" as file name pattern (as I think about it, it might only work on shared launch configurations, though).
*** Bug 35557 has been marked as a duplicate of this bug. ***
Consider for 3.0.
*** Bug 45130 has been marked as a duplicate of this bug. ***
*** Bug 45639 has been marked as a duplicate of this bug. ***
*** Bug 46924 has been marked as a duplicate of this bug. ***
*** Bug 47639 has been marked as a duplicate of this bug. ***
Fixed by the fix for bug 12746.