Community
Participate
Working Groups
Build 20020109 - create a CU: public class A { public void run() {} public static void main(String[] args) { new A().run; } } - copy it to the same package - it creates: public class CopyOfA { public void run() {} public static void main(String[] args) { new A().run(); } } Note that the constructor call has not been renamed. I was trying to copy a CU to a different name in the same package. I did the copy, then did the rename. The rename did not rename the ref either since it did not correspond to the name of the type. I did not notice this at first, since the new name was similar to the old name. It ended up running the old code since the old constructor ref was unchanged.
*** This bug has been marked as a duplicate of 5219 ***