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.
Created attachment 125493 [details] Sample class. At the following example, you can´t compile the class, because you get the error: variable argsLocal might not have been initialized Example ... public class NewClass1 { public NewClass1() { } public NewClass1(String[] args) { argsLocal = args; } } ... After clicking at the hint "Creating Field argsLocal in NewClass1", the following code is produced: .... private final String[] argsLocal; public NewClass1() { } public NewClass1(String[] args) { argsLocal = args; } ... At the empty constructor you get the following error: "variable argsLocal might not have been initialized". This is similar to #213699 (but not the same).
Created attachment 125494 [details] Screenshot
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/57b562d767ee
Integrated into 'main-golden', will be available in build *201306222301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/57b562d767ee User: Dusan Balek <dbalek@netbeans.org> Log: Issue #219626: Create Field hint should not create a final class - variable - fixed.