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 103591

Summary: [Push Down Field] Push Down a referenced field yields compilation error
Product: java Reporter: kely_garcia <kely_garcia>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description kely_garcia 2007-05-09 20:50:26 UTC
Build ID: 200609161800 (Netbeans 6.0 M3)

Steps to reproduce: apply Push Down Field refactoring to A.f on the following 
program:

public class A {
  int f;
}
class B extends A {
  int g = f;
}

PushDownField refactoring produces the uncompilable code below:
public class A {

}
class B extends A {
  int g = f;

    int f;
}

Note: The error message is "illegal forward reference"
Comment 1 Jan Becicka 2007-08-21 10:10:27 UTC
P5 imo. It is rare case and easy fixable by user.
Comment 2 David Strupl 2009-03-31 15:55:58 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 3 Quality Engineering 2009-11-02 11:16:53 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX