Community
Participate
Working Groups
public class X { public static int field; public static void main(String[] args) { field =3; foo(Integer.valueOf(5)); foo(new Object()); } private static void foo(Object o) { switch (o) { case Integer i : System.out.println("Integer:" + i); case String str && field>0 : System.out.println("String:" + str + str); default : System.out.println("Object" + o); } } } Select the field named "field" to "field2". I see 3 related issues as mentioned below 1)Although the renaming is successful, the highlighting of field is not present in case statement. 2_Also as you type, change is not visible 3) Also it is not possible to select field at that location and rename ( it should be possible to do that as well)
Fixed as a result of fix for 573941