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 196397

Summary: Refactoring: Move Inner to Outer Level erroneous
Product: java Reporter: mklaehn <mklaehn>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description mklaehn 2011-03-07 13:32:48 UTC
if i use the following class and move the class InnerClass from an inner to an Outer Level the OuterClass does not compile any more.

    package refactroing.test;
    public class OuterClass {
        private final InnerClass innerClass;
        public OuterClass() { innerClass = new InnerClass(); }
        private static class InnerClass {}
    }

The described refacturing results in the following code for OuterClass

    package refactroing.test;
    public class OuterClass {
        private final InnerClass innerClass;
        public OuterClass() { OuterClass.innerClass = new InnerClass(); }
    }

and InnerClass

  package refactroing.test;
  class InnerClass {}
Comment 1 Jan Becicka 2011-03-07 16:11:23 UTC
already fixed

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