Project: JDT
Bug 122490 Wrong visibility update in Move Static Method
Reported: 2006-01-03 04:15:52 | Status: resolved fixed

Build id: I20051220-0800 Having: ------------------------ package aa; public class Bug { private static String NAME= "N"; private static String getNAME() { // move to b.Target return NAME; } // public boolean isName(String n) { // uncommenting solves a), but not b) // return getNAME().equals(n); // } } ------------------------ package b; public class Target { } ------------------------ When moving: - warning message: will chng vis. of Bug.getNAME() to public - but: a) does not make Target.getNAME() public b) makes Bug.NAME public without telling

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test60/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test60/in/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test60/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test60/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test61/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test61/in/B.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test61/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveMembers/test61/out/B.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveMembersTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MemberVisibilityAdjustor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveStaticMembersProcessor.java