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

Summary: Move Inner to Outer Level Duplicates Single Line Comment
Product: editor Reporter: MackSix
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: project for reproduction of 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 ***