Adding annotation to one package is now causing warning

(Scott Duchin) #1

I have been using all sorts of annotations with success. I just added “javax.annotations.Nullable” to a package and now I am getting this warning:

warning: Implicitly compiled files were not subject to annotation processing.

Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.

1 warning

I have used Nullable in quite a few other places without difficulty. What is going on here?

(Peter Niederwieser) #2

Apparently you have both source code (e.g. in some Jar) and annotation processors on the compile class path, which will ultimately cause this warning. See ‘-implicit’ in the javac documentation.