Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 67768

Summary: Convert local variable to field deletes JavaDoc [refactoring]
Product: [Eclipse Project] JDT Reporter: Benjamin Pasero <bpasero>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benjamin Pasero CLA 2004-06-18 03:23:22 EDT
Hi,
please delete this bug if it was already reported. 

Having a local variable in a method with a JavaDoc on it
(either single line or multi-line) will delete the JavaDoc
after calling Refactor > Convert local variable to field.

Example:

public void foo() {

    /** This is a local variable */
    String bar = "foo";

}

Regards,
Ben
Comment 1 Markus Keller CLA 2004-10-04 04:50:59 EDT

*** This bug has been marked as a duplicate of 66457 ***