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 190153 - Annotation processor getCompletions() only called in test packages.
Summary: Annotation processor getCompletions() only called in test packages.
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-04 22:32 UTC by Russ_White
Modified: 2011-01-14 18:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test case project (14.37 KB, application/x-zip-compressed)
2010-09-04 22:33 UTC, Russ_White
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Russ_White 2010-09-04 22:32:16 UTC
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.
Comment 1 Russ_White 2010-09-04 22:33:38 UTC
Created attachment 101870 [details]
test case project

Demonstration project.
Comment 2 Dusan Balek 2011-01-14 18:34:59 UTC
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).