Community
Participate
Working Groups
Eclipse 3.2 M4 When refactoring a local variable to a field, comments above seem to be eaten. Procedure: -Create Local variable with a block comment above i.e /** * Comment */ ResourceManager resource = ... -Select and right-click -Refactor -> Convert Local Variable to Field -Block Comment should dissapear
In the example you give, the comment is not associated with the local (empty line in between) and will not be touched. So no problem there. But without empty line you're right. The created field should get the comment that was associated with the VariableDeclarationFragment before. This could be solved with a trick to simply move the VariableDeclarationFragment (instead of creating a FielDeclaration)
*** This bug has been marked as a duplicate of bug 66457 ***