Project: JDT
Bug 243584 [inline] inline method refactoring started on static field
Reported: 2008-08-08 09:34:18 | Status: resolved fixed

I20080807-1402. 1. replace BreadcrumbMessages.java with: private static Class thisClass= BreadcrumbMessages.class; private static final String BUNDLE_NAME= thisClass.getName(); public static String BreadcrumbItemDropDown_showDropDownMenu_action_toolTip; static { // initialize resource bundle NLS.initializeMessages(BUNDLE_NAME, thisClass); } private BreadcrumbMessages() { } 2. select 'thisClass' in "NLS.initializeMessages(BUNDLE_NAME, thisClass);" 3. Refactor > Inline... ==> should not allow to refactor 4. start to refactor all invocations ==> gives tons of wrong edits

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/invalid/TestNotMethodName.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java