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.
Summary: | [Move Inner To Outer Level] Move Inner Class B which has an expression that involves field A.f yields compilation error | ||
---|---|---|---|
Product: | java | Reporter: | kely_garcia <kely_garcia> |
Component: | Refactoring | Assignee: | issues@java <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
kely_garcia
2007-03-23 20:17:27 UTC
Note: The same problem happens with methods. For example: Move Inner Class 'Inner' on the following: class A { private int foo() {return 0;} public class Inner { Inner() { int f= foo(); } } } yields the following refactored class Inner: public class Inner { private final A a; Inner(A a) { this.a = a; int f = foo(); } } Compilation error is the following: "cannot find symbol: method foo" Move Inner To Outer Level not implemented in 6.0 so far. moving opened issues from TM <= 6.1 to TM=Dev fixed in NB 6.5 |