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.
private void someMethod() { //declare local variables CheckBox notFinal = new ... final CheckBox veryFinal.. AbstractClass some = new AbstractClass() { public void aMethod() { //I can use notFinal and veryFinal variables here //the only difference is when I press CTRL SPACE for suggestion it will just show me veryFinal //I have to type notFinal to use it } }; } Product Version = NetBeans IDE 8.1 (Build 201510222201) Operating System = Windows 10 version 10.0 running on amd64 Java; VM; Vendor = 1.8.0_92 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.92-b14 Reproducibility: Happens every time
Created attachment 160030 [details] IDE log
The non final variables cannot be referenced from anonymous
Sorry, the comment 2 is invalid. Please ignore
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/69f348c7fc40 http://hg.netbeans.org/main/nb-javac/rev/007412d1fe1a
Integrated into 'main-silver', will be available in build *201606160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/69f348c7fc40 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #262393 - final or effectively final just affect "suggestions/autocomplete" of the IDE - fixed.