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 - Move inner to outer removes some comments
Summary: Move inner to outer removes some comments
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 10:45 UTC by Jiri Prox
Modified: 2014-08-01 10:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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() {
    }
    
}