Community
Participate
Working Groups
Build Identifier: 20110615-0604 Trying to rename a package hangs Eclipse forever. This was not always the case and I only noticed it with the upgrade to Indigo. You rename a package by click on the package name in the Java source file, activating the refactor menu using the keyboard shortcut or right-click menu, and choosing rename. Eclipse will hang on the "Checking preconditions..." step. Note: I have the m2e plugin activated and I am using a Maven project. Reproducible: Always Steps to Reproduce: 1. Create a new Maven project using the wizard. 2. Create the following files using the new Class wizard: org/upthescala/eclipse/package1/ExampleClass4.java org/upthescala/eclipse/package2/ExampleClass2.java org/upthescala/eclipse/parentpackage1/childpackage1/ExampleClass1.java org/upthescala/eclipse/paraentpackage1/ExampleClass2.java 3. Open up ExampleClass2.java in the editor. 4. Put the cursor in the 'parentpackage1' text in the package declaration. 5. Right click and choose Refactor > Rename or use the keyboard shortcut. 6. Select all of the options like "rename in text files ...", etc. Results: - Eclipse hangs at the "Checking preconditions..." step. I am attaching a zip file containing a sample project.
Created attachment 200303 [details] small eclipse project created using wizard that can be used to demonstrate bug the attached project contains enough to reproduce the problem on my system. the reproduction recipe references file names that are in this sample project. this project can be trivially created using the wizards, so this is just for the bug investigators and fixers convenience. please let me know if i can provide more info.
Moving to m2e
I am unable to reproduce the problem with Eclipse 3.7 (Indigo) "For Java Developers" distribution using attached sample project and provided steps. If you can reproduce the problem using this distribution, please reopen the bug, but attach your eclipse configuration details and jvm thread dump when eclipse is in "hung" state.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/