Community
Participate
Working Groups
Created attachment 286757 [details] Problem shown in the image public static void main(String[] args) { foo(Integer.valueOf(5)); foo(new Object()); } private static void foo(Object o) { int local=0; switch (o) { case Integer i : System.out.println("Integer:" + i); case String /*here*/str && local>0 : System.out.println("String:" + str + str); default : System.out.println("Object" + o); } } } Try renaming local to local2. You can see an error message and refactor-> rename is unsuccessful. See image
fixed as a result of fix for bug 573941