Project: JDT
Bug 107998 [refactoring] [move] Move method out of non-static inner class too strict.
Reported: 2005-08-25 11:35:46 | Status: verified fixed

The inner class is non-static, but the method only accesses a static field. So Eclipse shouldn't refuse to move it. Interestingly, Eclipse allows moving the 'number' field, but not the method, even though they're in the same inner class. ------------------------- Bug.java ------------------ public class Bug { public static int field; class Inner{ int number=field; int method(){return field;} } }

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java