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 - Auto completion does not suggest constructor for final fields
Summary: Auto completion does not suggest constructor for final fields
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8.1
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-23 12:26 UTC by Alexandr Scherbatiy
Modified: 2016-09-23 12:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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

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