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.
I would like to use an annotation processor that has some static and dynamic completions. Right now the getCompletions() method only appears to be invoked when the annotated element(in my particular case a package-info class) is in a test package. The annotation processor I am currently testing works on package element annotations. I have attached a simple test project that demonstrates the issue.
Created attachment 101870 [details] test case project Demonstration project.
The problem is that the annotation processor has to be compiled on the given source root's classpath/processorpath (which is true for the 'test' source root in your project and not for the 'src' source root).