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 - Refactoring: Move Inner to Outer Level erroneous
Summary: Refactoring: Move Inner to Outer Level erroneous
Status: RESOLVED DUPLICATE of bug 195947
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 13:32 UTC by mklaehn
Modified: 2011-03-07 16:11 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 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 ***