Community
Participate
Working Groups
public class Foo implements IFoo { public static int FIELD = 1; } public interface IFoo { } The Move refactoring should let me move FIELD to IFoo (or to any other interface for that matter though that might generate errors), but this does not appear to be supported.
Oops! I just tried this out again and it worked fine. When I filed this report, I had just selected a static field and did Refactor->Move. The class picker dialog was not showing me any interfaces, however.
it should actually be disabled (i'm surprised you managed to move it) as of now, only interface fields can be moved to another interface it'd be possible to move also public static final fields or, check that there's no write accesses to the field (except for the initializer) and make the field final myself. but these are feature requests
P3
improvements after 2.0
reop
*** This bug has been marked as a duplicate of 28022 ***