Skip to content
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

Retention of @DefaultQualifier should be RUNTIME #6420

Open
mmorrisontx opened this issue Jan 24, 2024 · 0 comments
Open

Retention of @DefaultQualifier should be RUNTIME #6420

mmorrisontx opened this issue Jan 24, 2024 · 0 comments

Comments

@mmorrisontx
Copy link

mmorrisontx commented Jan 24, 2024

Unless I'm missing something, I believe the @Retention of @DefaultQualifier should be RUNTIME, not SOURCE. As is, @DefaultQualifier(@Nonnull) used within a published library is disregarded when the library is consumed because the annotation is missing from intellij's decompiled version of the class.

https://github.com/typetools/checker-framework/blob/master/checker-qual/src/main/java/org/checkerframework/framework/qual/DefaultQualifier.java

Strangely, the retention of DefaultQualifier.List is already RUNTIME, but unfortunately that one isn't respected by intellij, making it not a viable hack around this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant