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.
Product Version: NetBeans IDE Dev (Build 200707012149) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /space/u6 The introduced filed it inserted before other filed declaration, although it can have reference to it. Steps to reproduce: 1) introduce field from "d+x" in following code and select "initialize in field" public class ClassA { int d = 3; int x = 3; public void neco() { System.out.println(d + x); } } Result (invalid forward reference): public class ClassA { public int name = d + x; int d = 3; int x = 3; public void neco() { System.out.println(name); } }
We can probably live with this problem.
later.
NetBeans.org Migration: changing resolution from LATER to WONTFIX