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 255191

Summary: [81cat] CC should suggests constants when possible
Product: java Reporter: Michel Graciano <hmichel>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Michel Graciano 2015-09-10 17:51:37 UTC
Given the sample source below, if I put the cursor at line:column 5:11 and hit CC, the constant is suggested, but if I hit CC at line:column 3:27, nothing useful happens.

public class SampleClass {

  @SuppressWarnings(SOME_C)
  public static void main(String[] args) {
    SOME_C
  }

  public static final class Constants {

    public static final String SOME_CONSTANT = "SOME_CONSTANT";

  }

}