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 - final or effectively final just affect "suggestions/autocomplete" of the IDE
Summary: final or effectively final just affect "suggestions/autocomplete" of the IDE
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-10 13:43 UTC by FiruzzZ
Modified: 2016-06-16 01:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (180.29 KB, text/plain)
2016-06-10 13:43 UTC, FiruzzZ
Details

Note You need to log in before you can comment on or make changes to this bug.
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.