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 262393

Summary: final or effectively final just affect "suggestions/autocomplete" of the IDE
Product: java Reporter: FiruzzZ
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description FiruzzZ 2016-06-10 13:43:22 UTC
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
Comment 1 FiruzzZ 2016-06-10 13:43:30 UTC
Created attachment 160030 [details]
IDE log
Comment 2 Jiri Prox 2016-06-10 14:07:38 UTC
The non final variables cannot be referenced from anonymous
Comment 3 Jiri Prox 2016-06-10 14:08:19 UTC
Sorry, the comment 2 is invalid. Please ignore
Comment 5 Quality Engineering 2016-06-16 01:52:23 UTC
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.