Project: JDT
Bug 253378 Paste class source breaks static import.
Reported: 2008-11-03 17:56:51 | Status: resolved fixed

Build ID: M20080911-1700 (3.4.1) Steps To Reproduce: 1. In package explorer, copy the Bug.java file. 2. In package explorer, paste it into the same package with a new class name. See that the static import statement is illegal. ---------------- bug/Bug.java ----------------- package bug; import static bug.Bug.X.z; class Bug { enum X{z} X y=z; }

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/CreateCopyOfCompilationUnitChange.java