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 268172

Summary: Auto completion does not suggest constructor for final fields
Product: editor Reporter: Alexandr Scherbatiy <sunflower>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: sunflower
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:

Description Alexandr Scherbatiy 2016-09-23 12:26:39 UTC
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)

Steps to reproduce:
- Create a class
- Add final fields without values
- Type a class and call press Ctrl+Space (autocompletion)
The constructor with fields initialization is not suggested.

Code sample: TestClass.java
-----------
public class TestClass {

    final int width;  // final variable is not initialized 
    final int height; // final variable is not initialized 

  // Pres Ctrl+Space 
  // TestClass(int width, int height) generation is not suggested

    
}
-----------