-
Notifications
You must be signed in to change notification settings - Fork 21
fix: make jspecify a compile time/optional dependency #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@ppkarwasz can you please take a look at this PR? Am I correct? |
None of these examples have |
Whether to put JSpecify as
|
I think my PR title might have confused things a bit. I didn't mean to raise the concern of the |
I am in favor of this change, but it is related to scope. |
I am looking at this from a purely functional perspective:
Interesting! 💯
This is good news, because JSpecify annotations have no values (at least currently)! Go ahead and merge this. Note: There is a bug in JRE 8 (JDK8152174) that throws an NPE if someone is trying to access a missing type annotation via reflection. So this code will throw a PackageURL.class.getDeclaredMethod("getNamespace").getAnnotatedReturnType(); |
I think you want provided or it can be pulled in as a dependency in some other ways. I think shading is one. |
Unfortunately - I'll need to get @stevespringett to approve this one. |
As jspecify is just a compile-time annotation, I believe this should be marked as an optional dependency. Other examples of this: