Red Hat Bugzilla – Bug 219924
Refactoring doesn't work in Eclipse CDT!
Last modified: 2007-11-30 17:11:51 EST
Description of problem:
The most useful feature in Eclipse -- refactoring doesn't work in Eclipse CDT if
running Eclipse on gcj (native)! Refactoring does work, if running eclipse on
sun's Java VM.
Version-Release number of selected component (if applicable):
Eclipse platform 3.2.0 - CDT Refactoring 22.214.171.124609291545
Steps to Reproduce:
1. Select a variable
2. Choose Refactor -> Rename from the context menu
3. Eneter a new name for the selected variable
4. Press Preview/OK
Messge box 'Refactoring doesn't change any code' appears
Changes in the current edit buffer in the variable's scope/Preview of the code
This problem is a duplicate of 183698. There is a bug in classpath whereby the
Matcher.reset() operation does not work properly. Internal code in the CDT uses
this during refactoring "and" also for searches. The result of the bug is that
the list of applicable files to look at for renaming or searching ends up being
the empty list. A patch has been posted to gcc for the Classpath bug. A
forth-coming gcc update will contain this fix.
*** This bug has been marked as a duplicate of 183698 ***