This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 246187

Summary: Move inner to outer removes some comments
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2014-08-01 10:45:08 UTC
Move inner to outer removes some comments

Have a inner class  

    /**
     * Comment 
     */
    class Inner2  /*a*/{ //b
        /**
         *  c
         */
        public void neco() {
        }
                    
    }

Move inner to outer, keep defaults

-> new top level class is introduced, comment "a" is lost

/**
 * Comment
 */
class Inner2 {
    private final NewClass outer;

    Inner2(final NewClass outer) {
        this.outer = outer;
    }

    //b
    /**
     *  c
     */
    public void neco() {
    }
    
}