This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: 1. Create the following Java source file: package testpackage; import static testpackage.Test.Foo.*; public class Test { public enum Foo { FOO }; { Foo foo = FOO; } } 2. Choose Refactor->Copy... and copy the class to testpackage2. Result: package testpackage2; import testpackage.*; import static testpackage.Test.Foo.*; public class Test { public enum Foo { FOO }; { Foo foo = FOO; } } This creates a compile error on the assignment because the rhs FOO there is from testpackage and the lhs Foo is the local Foo from testpackage2. Expected behavior: The static import should have been adjusted to: import static testpackage2.Test.Foo.*; Move... instead of Copy... has the correct behavior.
*** This issue has been marked as a duplicate of 90769 ***