Project: JDT
Bug 77622 Invalid problem report when renaming statically imported field [refactoring] [rename]
Reported: 2004-11-03 09:24:52 | Status: resolved fixed

I200411022000 Using the following 2 CUs: package test; import static test1.B.PI; public class A { public void foo() { double pi= PI; } } package test1; public class B { public static final double PI= Math.PI; } when renaming the field PI (from decl. and ref.) 2 problems in the refactored source are reported in the dialog before the refactoring is applied. The resulting source does not have these problems.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testEnumConst/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testEnumConst/in/B.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testEnumConst/in/C.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testEnumConst/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testEnumConst/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testEnumConst/out/C.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testStaticImport/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testStaticImport/in/B.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testStaticImport/in/C.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testStaticImport/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testStaticImport/out/B.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameNonPrivateField/testStaticImport/out/C.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/RenameNonPrivateFieldTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameEnumConstProcessor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameFieldProcessor.java