Community
Participate
Working Groups
Build Identifier: 20120614-1722 If the package of a Java class is manually modified, then a quick fix appears to move the file in the correct new package. However any imports that were using this class will simply not be updated - resulting in compilation errors in all the classes that were using this class. Reproducible: Always
This is pretty similar to bug 383787, where iiuc you're suggesting the quick fix should be more like a refactor action, not just dummy package move. Is that correct?
Yes, it's pretty similar, and yes, one fix would potentially fix both. I added two bugs, because the failures are related but ultimately different. Thanks. Eugen.
Moving to JDT/UI
Our current Quick Fix is not capable of handling a fix which require modification in more than one file. In such scenario we have to choose one of the refactoring options available so that the internal consistency of the files are maintained. We can think of taking this up an improvement point for the current Quick Fix. See also bug 383787