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 - No code completion occurs when there is an annotation below
Summary: No code completion occurs when there is an annotation below
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-09 12:24 UTC by villoto
Modified: 2017-05-17 16:00 UTC (History)
0 users

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 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.