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 258288

Summary: No code completion occurs when there is an annotation below
Product: editor Reporter: villoto
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description villoto 2016-03-09 12:24:41 UTC
Reproducibility: Happens every time

The code completion feature is ok when I want to have a 'public static final Logger LOGGER = ...', but when there is an annotation below this, the code completion doesn't works.

Example

package example;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author Rodrigo Villablanca <rvillablanca@kdu.cl>
 */
public class Example {

    private static final Logger LOGGER = LoggerFactory.getLogger(Example.class); //Code completion works, in fact it suggests me the name of variable in capital case.

    public void overrideme() {
        System.out.println("Hello");
    }

}

class AnotherExample extends Example {
    
    private static final Logger ... //Code completion doesn't works, because the below annotation @Override, it doesn't suggests name of variable in capital case and neither for the 'LoggerFactory.getLogger(Anothe...' sentence.

    @Override
    public void overrideme() {
        super.overrideme();
    }

}
Comment 1 Dusan Balek 2016-08-30 08:54:26 UTC
Already fixed in the current dev build.
Comment 2 villoto 2017-05-11 13:31:02 UTC
I am using Netbeans 8.2 Build 201609300101, but this bug stills appearing.

The fix was not added to this build. was it ?
Comment 3 villoto 2017-05-17 16:00:52 UTC
I reopen this bug because using netbeans v8.2 (build 201609300101) this error keeps appearing.