Community
Participate
Working Groups
Refactoring problem. When a member variable is selected for PullUp, then it is moved to the parent class, and the specifier 'protected' is added to its declaration. This is great. If the member variable had Javadoc comments with it, then these are moved up to the parent class when the refactoring takes place. This is also great. However, the 'protected' keyword is added /in front/ of the Javadoc comments, not between the comments and the variable declaration. This is not so good, and will probably exclude the comments from being processed correctly by the Javadoc compiler - and just looks wrong etc... For example, the end result of such a refactoring may well look like this: protected /** * The filename of the current image */ String filename = null; Basically a fairly minor problem, but quite a nuisance as it then requires manual intervention to correct the code...
To prevent confusion, it is worth mentioning that this is repeatable, but only seems to occur when the member variable does NOT already have an access modifier (public/protected/private) specified when it the PullUp is started This is using the 2.0 final release of Eclipse.
Move to JDT/UI.
We should check if the field declaration has an associated Java doc comment using getJavadoc().
*** This bug has been marked as a duplicate of 21908 ***