Community
Participate
Working Groups
It's impossible to move static member from one inner class to another -- on below example CONSTANT can't be moved from class A to B using Refactor->Move tool: public class Foo { public static class A { public static final String CONSTANT = ""; } public static class B {} }
This works fine if you enter the fully-qualified name for B (e.g. using Content Assist). Only thing to do is to support the unqualified type name. The fix is to use declaring.resolveType() in MoveMembersWizard.MoveMembersInputPage#addDestinationControls(Composite) and in MoveStaticMembersProcessor#resolveType(String).