Community
Participate
Working Groups
class A { public static final int CONST = 0; public static final int CONST2 = CONST; } class B { public static final int CONST3 = A.CONST; } Moving CONST to class B gives: class A { public static final int CONST2 = B.CONST; // as expected } class B { public static final int CONST = 0; public static final int CONST3 = B.CONST; // the "B." is superfluous } Perhaps there should be a switch in the Move dialog to remove superfluous qualifiers after the move?
Please provide more details. http://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm
Sorry there is no long explanatory text, I figured the annotated example was self-explanatory. See "Moving CONST to class B gives:" between the "before" and "after" examples, and "// the "B." is superfluous". The problem is that "A.CONST" in class B gets replaced with "B.CONST" once CONST is moved into class B. While the code is valid, the "B." is superfluous.
*** Bug 120583 has been marked as a duplicate of this bug. ***
*** Bug 409592 has been marked as a duplicate of this bug. ***
See also bug 112999.
Maybe the root cause of https://bugs.eclipse.org/bugs/show_bug.cgi?id=421969