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 225108 - Move Inner to Outer Level Duplicates Single Line Comment
Summary: Move Inner to Outer Level Duplicates Single Line Comment
Status: RESOLVED DUPLICATE of bug 225107
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-20 03:55 UTC by MackSix
Modified: 2013-01-20 22:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project for reproduction of bug (31.85 KB, application/zip)
2013-01-20 03:55 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-01-20 03:55:22 UTC
Created attachment 130410 [details]
project for reproduction of bug

1. Import Attached Project.
2. Open up all the files.
3. Right click on InnerClass inside of TestClass.java and choose Refactor>>Move Inner to Outer Level.
4. The new outer class file is created, but the comment "// A comment." to the right of the throw statement is duplicated 2 times as shown below.

    @Override
    public int compareTo(Object o) {
        throw new UnsupportedOperationException("Not supported yet."); // A comment.
        // A comment.
        // A comment.
    }

Product Version: NetBeans IDE 7.3 RC1 (Build 201301102100)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)


This does not occur in NetBeans IDE Dev (Build 201301190001)
Comment 1 MackSix 2013-01-20 05:17:39 UTC
Bug still valid in:

Product Version: NetBeans IDE 7.3 RC1 (Build 201301172100)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 2 Ralph Ruijs 2013-01-20 22:08:37 UTC

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