You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warn users about using provided/optional/implementation for annotation deps, especially with @Implies #294
We'll hopefully be defining annotations such that those scopes can't cause "Cannot find annotation method 'value()'" problems, but I don't know that we'll be able to prevent all runtime problems. And @Implies is going to be a whole additional problem (somewhat similar to @Inherited) about which I'll file an issue shortly.
I think you were summarizing this issue in #295 like this:
When developers declare a dependency on a library of annotations (like JSpecify), they sometimes choose to declare the dependency in a way that tells tools: "When someone depends on my library, don't include that annotation library on that user's classpath, either at build time or at runtime." I think this is a bad idea in general (and so I want to discourage it).
So unless we reverse course on "bad idea", we should continue this evangelism, and strongly advise tool owners that they should issue loud warnings when they spot an annotation they know nothing about. And maybe even add a javadoc blurb to @Implies in particular about it.
Continuing to dump links without thinking deeply: As long as nullness checkers contain code like this that introspects on annotation declarations, we will have another reason to worry about building without those annotations on the classpath.
Activity
cpovirk commentedon Oct 3, 2022
(In our docs, we can mention that JSpecify is a small library (and, given our rate of progress, is going to stay that way ;)).)
kevinb9n commentedon Oct 5, 2022
I think you were summarizing this issue in #295 like this:
So unless we reverse course on "bad idea", we should continue this evangelism, and strongly advise tool owners that they should issue loud warnings when they spot an annotation they know nothing about. And maybe even add a javadoc blurb to
@Impliesin particular about it.cpovirk commentedon Jul 2, 2024
See also #389.
cpovirk commentedon Jul 8, 2024
Continuing to dump links without thinking deeply: As long as nullness checkers contain code like this that introspects on annotation declarations, we will have another reason to worry about building without those annotations on the classpath.
netdpb commentedon Jul 16, 2024
This is written in the docs-1.0 branch, which we'll merge into main soon.