Community
Participate
Working Groups
Create a class with a static list. Then add objects to this list in a static block. Now try to Refactor:Rename the list. Once completed, the list reference in the static block renames unchanged. So in the example code below, when RENAME is changed to RENAMED_STATIC_VAR, the RENAME references are not updated to RENAMED_STATIC_VAR within the static {}. ------- Example code ------- import java.util.ArrayList; class Rename { public static final ArrayList RENAME = new ArrayList(); static { RENAME.add("object1"); RENAME.add("object2"); } }
Which build are you using? This works for me with I20040129.
Please reopen if you have more details.