Handling of jspecify @Nullable broken (I think)

Hi

I have started seeing false positives of missing Null-annotations in my Java projects.

For example: SonarCloud

I have created a repository with examples showing that javax.annotation.Nullable is treated correctly, while org.jspecify.annotations.Nullable causes a warning.

(the examples make use of Immutable’s code generation as I thought that was the cause of the breakage first)

I see this in the latest Eclipse Lint plugin locally, and in sonarcloud (the link above).

I hope this is enough information for you to reproduce. Otherwise, please do let me know.

Thanks!

Hi @jskov,

Thank you for bringing this to our attention. We know the issue you’ve described regarding Jspecify annotations causing false positives in your Java projects. We’ve created a plan to support Jspecify annotations, and you can track its progress here: SONARJAVA-4544

Please note that we will prioritize this support once Jspecify’s version 1.0 is released. In the meantime, if you encounter any more issues or have additional information to share, please feel free to let us know.

All the best,

Irina

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.