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 7.4 Beta (Build 201306132201) Operating System = Linux version 2.6.32-358.11.1.el6.i686 running on i386 Java; VM; Vendor = 1.7.0_21 Runtime = Java HotSpot(TM) Client VM 23.21-b01 1. "make variable final" hint shown for variable declaration without the actual assignment 2. after clicking the hint, final is inserted in the code. but, compilation error is not shown since final keyword is there without actual assignment 3. inside constructor, this variable is assigned. but, no compilation error saying "cannot assign a value to final variable" I am setting priority as P1, as I feel it is critical.
attached screenshot showing "make final" hint shown even without variable assignment
Created attachment 135811 [details] "Make final" hint shown even without variable assignment
attached screenshot showing "no compilation error" on following 2 scenarios 1. final keyword during variable declaration without actual value assignment 2. during assigning value for a final variable in constructor
Created attachment 135812 [details] screenshot showing "no compilation error" on 2 scenarios
Created attachment 135813 [details] IDE log
I am marking this bug invalid as the behavior is right. I just read jls 3.0 again by trusting nb. got clarified