Summary: | [quick fix] Moving a class via Quick Fix will not resolve imports correctly | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eugen Paraschiv <hanriseldon> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | amj87.iitr, deepakazad, manju656, tomasz.zarna |
Version: | 4.2 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Eugen Paraschiv
2012-06-28 08:37:17 EDT
To make sure we're on the same page, are you suggesting the quick fix ("Move 'xxx.java' to package 'y'") should do the same as Refactor > Mode (Alt + Shift + V) from the context menu? Yes I am. Refactor would leave the system in a consistent state, whereas this operation doesn't. Thanks. Eugen. I thought the problem is in organize imports, but if the refactor works fine, then this should too. Moving to JDT/UI for comment. Remotely related to bug 222700. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=222700#c5 Ideally we should use the 'Move' refactoring operation to handle this scenario, which will take care of the internal consistency of the Java file. But since this Quick Fix require changes to a single file, we should take this up as an improvement for the current Quick Fix. |