Incorrect comment? #1291
-
I have analyzed the code and I believe the code does not behave as this comment suggests. I believe the deferral policy of (any kind of) package is the same as that of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As you say, validating a package consists only of validating the annotations on it. The point about
Suppose package I don't think the comment is wrong per se, but it could possibly be worded better. Feel free to send a PR with a wording that you would have found easier to follow. |
Beta Was this translation helpful? Give feedback.
As you say, validating a package consists only of validating the annotations on it. The point about
package-info.java
is that that is the mechanism for annotating a package:Suppose package
com.example.foo
was one of the elements returned byRoundEnvironment.getElementsAnnotatedWith
, and suppose the classSomeOtherAnnotation
doesn't exist (because an annotation processor will create it later). Then we will defer anElementName
representing packagecom.example.foo
to a later processing round.I don't think the comment is wrong per se, but it could possibly be worded better. Feel free to sen…